From 072342016d888a25130869bc61c09bca0dd4c525 Mon Sep 17 00:00:00 2001 From: AlexisWilke Date: Mon, 4 Jul 2011 12:44:50 -0700 Subject: [PATCH] Issue [#1120980] by stephen Verdant: Simplemenu missing for roles other than root administrator --- simplemenu.module | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/simplemenu.module b/simplemenu.module index d1b97497..0daad652 100644 --- a/simplemenu.module +++ b/simplemenu.module @@ -268,10 +268,17 @@ function simplemnu_get_zindex($name, $default) { } /** - * Implementation of hook_perm(). + * Implementation of hook_permission(). */ -function simplemenu_perm() { - return array('view simplemenu', 'administer simplemenu'); +function simplemenu_permission() { + return array( + 'view simplemenu' => array( + 'title' => t('See and use the Simplemenu'), + ), + 'administer simplemenu' => array( + 'title' => t('Administer the Simplemenu'), + ), + ); } /**