function cf_menu_menu in Common Functionality 7
Same name and namespace in other branches
- 7.2 modules/cf_menu/cf_menu.module \cf_menu_menu()
Implements hook_menu().
@see: cf_menu_accessibility_page()
File
- modules/
cf_menu/ cf_menu.module, line 8
Code
function cf_menu_menu() {
$items = array();
$accessibility_page = variable_get('cf_menu_accessibility_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') . '/includes',
'access callback' => 'user_access',
'access arguments' => array(
'view content accessibility administration page',
),
);
}
return $items;
}