function view_mode_page_menu in View Mode Page 7.2
Same name and namespace in other branches
- 8.2 view_mode_page.module \view_mode_page_menu()
Implements hook_menu().
File
- ./
view_mode_page.module, line 133 - View Mode Page module allows users to add a page for a specific view mode.
Code
function view_mode_page_menu() {
$items = array();
$items['admin/structure/view_mode_page/missing'] = array(
'title' => 'Missing view modes',
'page callback' => 'view_mode_page_missing_view_modes',
'access arguments' => array(
'administer view mode page',
),
);
$items['admin/structure/view_mode_page/remove/%'] = array(
'title' => 'Remove view mode page pattern',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'view_mode_page_remove_pattern',
1,
),
'access arguments' => array(
'administer view mode page',
),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}