function date_tools_menu in Date 6.2
Same name and namespace in other branches
- 8 date_tools/date_tools.module \date_tools_menu()
- 7.3 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()
File
- date_tools/
date_tools.module, line 32
Code
function date_tools_menu() {
$items = array();
$items['admin/content/date/tools'] = array(
'title' => 'Date Tools',
'description' => 'Tools to import and auto-create dates and calendars.',
'access arguments' => array(
'administer date tools',
),
'page callback' => 'date_tools_page',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/content/date/tools/about'] = array(
'title' => 'About',
'description' => 'Tools to import and auto-create dates and calendars.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -5,
'priority' => 1,
'page callback' => 'date_tools_page',
'access arguments' => array(
'administer date tools',
),
);
$items['admin/content/date/tools/date_wizard'] = array(
'title' => 'Date wizard',
'description' => 'Easy creation of date content types and calendars.',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
'priority' => 1,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'date_tools_wizard_form',
),
'access arguments' => array(
'administer date tools',
),
'file' => 'date_tools.wizard.inc',
'path' => drupal_get_path('module', 'date_tools'),
);
$items['admin/content/date/tools/import'] = array(
'title' => 'Import',
'access arguments' => array(
'administer date tools',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'date_tools_copy_import_event_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'date_tools.event.inc',
'path' => drupal_get_path('module', 'date_tools'),
);
$items['admin/content/date/tools/import/event'] = array(
'title' => 'Event import',
'access arguments' => array(
'administer date tools',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'date_tools_copy_import_event_form',
),
'type' => MENU_LOCAL_TASK,
'weight' => 3,
'file' => 'date_tools.event.inc',
'path' => drupal_get_path('module', 'date_tools'),
);
$items['date/tools/remove'] = array(
'title' => 'Remove calendar',
'access arguments' => array(
'administer date tools',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'date_tools_remove_form',
3,
),
'type' => MENU_CALLBACK,
);
$items['admin/content/date/tools/change'] = array(
'title' => 'Change',
'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',
'path' => drupal_get_path('module', 'date_tools'),
);
return $items;
}