You are here

function date_tools_menu in Date 8

Same name and namespace in other branches
  1. 6.2 date_tools/date_tools.module \date_tools_menu()
  2. 7.3 date_tools/date_tools.module \date_tools_menu()
  3. 7 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 43
@todo.

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',
  );

  /**
  $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',
  );
  */
  return $items;
}