浏览代码

Issue [#1120980] by stephen Verdant: Simplemenu missing for roles other than root administrator

AlexisWilke 14 年之前
父节点
当前提交
072342016d
共有 1 个文件被更改,包括 10 次插入3 次删除
  1. 10 3
      simplemenu.module

+ 10 - 3
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'),
+    ),
+  );
 }
 }
 
 
 /**
 /**