summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrv02013-01-18 14:39:56 (GMT)
committer rv02013-01-18 14:39:56 (GMT)
commit3091f264134394470f2a59e09ac21818f7a356fd (patch)
tree3965a19f7b2216948430079dfe3ae678b781df84
parent4d05baff93b3ae997ef45d73fa4529a4561c0f6f (diff)
Issue #1478590 by rv0: add new permission to access the administration page.
-rw-r--r--og_menu.module15
1 files changed, 12 insertions, 3 deletions
diff --git a/og_menu.module b/og_menu.module
index ef3b953..5a3a22a 100644
--- a/og_menu.module
+++ b/og_menu.module
@@ -11,9 +11,13 @@
*/
function og_menu_permission() {
return array(
+ 'administer og menu configuration' => array(
+ 'title' => t('Administer OG Menu configuration'),
+ 'description' => t('Grant access to the global OG Menu configuration.'),
+ ),
'administer og menu' => array(
'title' => t('Administer OG menus'),
- 'description' => t('Administer custom menus for a group'),
+ 'description' => t('Administer custom menus for all groups.'),
),
);
}
@@ -22,7 +26,12 @@ function og_menu_permission() {
* Implements hook_og_permission().
*/
function og_menu_og_permission() {
- return og_menu_permission();
+ return array(
+ 'administer og menu' => array(
+ 'title' => t('Administer OG menus'),
+ 'description' => t('Administer custom menus in the group context'),
+ ),
+ );
}
/**
@@ -167,7 +176,7 @@ function og_menu_menu() {
'description' => 'Configuration for Organic groups menu',
'page callback' => 'drupal_get_form',
'page arguments' => array('og_menu_config_form'),
- 'access arguments' => array('access administration pages'),
+ 'access arguments' => array('administer og menu configuration'),
'type' => MENU_NORMAL_ITEM,
'file' => 'og_menu.pages.inc',
);