You are here

function date_tools_menu in Date 7

Same name and namespace in other branches
  1. 8 date_tools/date_tools.module \date_tools_menu()
  2. 6.2 date_tools/date_tools.module \date_tools_menu()
  3. 7.3 date_tools/date_tools.module \date_tools_menu()
  4. 7.2 date_tools/date_tools.module \date_tools_menu()

Implements hook_menu().

File

date_tools/date_tools.module, line 39

Code

function date_tools_menu() {
  $items = array();
  $items['admin/structure/date'] = 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',
  );
  $items['admin/structure/date/about'] = array(
    'title' => 'About',
    'description' => 'Tools to import and auto-create dates and calendars. ',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -5,
    'page callback' => 'date_tools_page',
    'access arguments' => array(
      'administer date tools',
    ),
  );
  $items['admin/structure/date/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',
  );
  $items['admin/structure/date/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/structure/date/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',
  );
  return $items;
}