function cf_menu_menu in Common Functionality 7.2
Same name and namespace in other branches
- 7 modules/cf_menu/cf_menu.module \cf_menu_menu()
Implements hook_menu().
@see: cf_menu_accessibility_page()
Related topics
File
- modules/
cf_menu/ cf_menu.module, line 31 - Common Functionality - Menu Module.
Code
function cf_menu_menu() {
$items = array();
$accessibility_page = variable_get('accessibility_admin_page', TRUE);
if ($accessibility_page) {
$items['admin/content/accessibility'] = array(
'title' => "Accessibility",
'description' => "Content accessibility administrative pages.",
'page callback' => 'cf_menu_accessibility_page',
'type' => MENU_LOCAL_TASK,
'file' => 'menu.inc',
'file path' => drupal_get_path('module', 'cf_menu') . '/pages',
'access callback' => 'user_access',
'access arguments' => array(
'view content accessibility administration page',
),
);
}
$management_page = variable_get('management_admin_page', TRUE);
if ($management_page) {
$items['admin/content/management'] = array(
'title' => "Management",
'description' => "Content management administrative pages.",
'page callback' => 'cf_menu_management_page',
'type' => MENU_LOCAL_TASK,
'file' => 'menu.inc',
'file path' => drupal_get_path('module', 'cf_menu') . '/pages',
'access callback' => 'user_access',
'access arguments' => array(
'view content management administration page',
),
);
}
return $items;
}