function date_tools_menu in Date 7.3
Same name and namespace in other branches
- 8 date_tools/date_tools.module \date_tools_menu()
- 6.2 date_tools/date_tools.module \date_tools_menu()
- 7 date_tools/date_tools.module \date_tools_menu()
- 7.2 date_tools/date_tools.module \date_tools_menu()
Implements hook_menu().
File
- date_tools/
date_tools.module, line 42 - Primary hook implementations for the Date Tools module.
Code
function date_tools_menu() {
$items = array();
$items['admin/config/date/tools'] = array(
'title' => 'Date Tools',
'description' => 'Date Wizard and other tools to manage and create dates and calendars. ',
'access arguments' => array(
'administer date tools',
),
'page callback' => 'date_tools_page',
);
$items['admin/config/date/tools/about'] = array(
'title' => 'About',
'description' => 'Date Wizard and other tools to manage and create dates and calendars. ',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -5,
'page callback' => 'date_tools_page',
'access arguments' => array(
'administer date tools',
),
);
$items['admin/config/date/tools/date_wizard'] = array(
'title' => 'Date wizard',
'description' => 'Easy creation of date content types and calendars. ',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'date_tools_wizard_form',
),
'access arguments' => array(
'administer date tools',
),
'file' => 'date_tools.wizard.inc',
);
// @code
// $items['admin/config/date/tools/change'] = array(
// 'title' => 'Change type',
// 'access arguments' => array('administer date tools'),
// 'page callback' => 'drupal_get_form',
// 'page arguments' => array('date_tools_change_type_form'),
// 'type' => MENU_LOCAL_TASK,
// 'weight' => 3,
// 'file' => 'date_tools.change_type.inc',
// );
// @endcode
return $items;
}