function panels_page_admin_static_menu_items in Panels 6.2
Define and return all the static administrative pages for hook_menu().
1 call to panels_page_admin_static_menu_items()
- panels_page_menu in panels_page/
panels_page.module
File
- panels_page/
panels_page.menu.inc, line 13 - panels_page.menu.inc
Code
function panels_page_admin_static_menu_items() {
$items = array();
$admin = array(
// TODO is 'create panel-pages' still the best name for this perm?
// TODO we'll need to granulate this perm significantly in panels3.
'access arguments' => array(
'create panel-pages',
),
'file' => 'panels_page.admin.inc',
'description' => 'Create and administer panel-pages (complex layout pages with URLs).',
'type' => MENU_LOCAL_TASK,
);
$items['admin/panels/panel-page'] = array(
'title' => 'Panel pages',
'page callback' => 'panels_page_list_page',
'type' => MENU_NORMAL_ITEM,
) + $admin;
$items['admin/panels/panel-page/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
) + $admin;
$items['admin/panels/panel-page/settings'] = array(
'title' => 'Settings',
'page callback' => 'panels_page_settings',
'weight' => -5,
) + $admin;
$items['admin/panels/panel-page/add'] = array(
'title' => 'Add',
'page callback' => 'panels_page_add_handler',
'weight' => 0,
) + $admin;
$items['admin/panels/panel-page/import'] = array(
'title' => 'Import',
'page callback' => 'panels_page_import_page',
'weight' => 5,
) + $admin;
return $items;
}