function panels_sections_menu in Panels Sections 6
Same name and namespace in other branches
- 6.2 panels_sections.module \panels_sections_menu()
Implementation of hook_menu().
File
- ./
panels_sections.module, line 33 - Allows you to define panels_sections of your site and apply s to those panels_sections.
Code
function panels_sections_menu() {
$items = array();
$access = array(
'administer panels_sections',
);
// This is the minimum information you can provide for a menu item.
$items['admin/panels/panels_sections'] = array(
'title' => 'Panels Sections',
'description' => 'Define sections of your site and give them a Panels Page layout.',
'page callback' => 'panels_sections_list',
'access arguments' => $access,
'type' => MENU_NORMAL_ITEM,
);
$items['admin/panels/panels_sections/list'] = array(
'title' => 'List',
'page callback' => 'panels_sections_list',
'access arguments' => $access,
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/panels/panels_sections/add'] = array(
'title' => 'Add section',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'panels_sections_admin_settings_form',
),
'access arguments' => $access,
'type' => MENU_LOCAL_TASK,
);
$items['admin/panels/panels_sections/edit/%panels_sections_section'] = array(
'title' => 'Edit section',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'panels_sections_admin_settings_form',
4,
),
'access arguments' => $access,
'type' => MENU_CALLBACK,
);
$items['admin/panels/panels_sections/delete/%panels_sections_section'] = array(
'title' => 'Edit section',
'page callback' => '_panels_sections_delete',
'page arguments' => array(
4,
),
'access arguments' => $access,
'type' => MENU_CALLBACK,
);
return $items;
}