function cf_menu_cf_permission_alter in Common Functionality 7.2
Same name and namespace in other branches
- 7 modules/cf_menu/cf_menu.module \cf_menu_cf_permission_alter()
Implements hook_cf_permission_alter().
See also
Related topics
File
- modules/
cf_menu/ cf_menu.module, line 72 - Common Functionality - Menu Module.
Code
function cf_menu_cf_permission_alter(&$permissions) {
if (!is_array($permissions)) {
$permissions = array();
}
$accessibility_page = variable_get('accessibility_admin_page', TRUE);
if ($accessibility_page) {
$permissions['view content accessibility administration page'] = array(
'title' => t("View Content Accessibility Administration Page"),
'description' => t("Grants permissions to view the content accessibility administration page."),
);
}
$management_page = variable_get('management_admin_page', TRUE);
if ($management_page) {
$permissions['view content management administration page'] = array(
'title' => t("View Content Management Administration Page"),
'description' => t("Grants permissions to view the content management administration page."),
);
}
}