You are here

function calendar_systems_menu in Calendar Systems 6.2

Same name and namespace in other branches
  1. 8 calendar_systems.module \calendar_systems_menu()
  2. 6.3 calendar_systems.module \calendar_systems_menu()
  3. 6 calendar_systems.module \calendar_systems_menu()
  4. 7.3 calendar_systems.module \calendar_systems_menu()
  5. 7 calendar_systems.module \calendar_systems_menu()
  6. 7.2 calendar_systems.module \calendar_systems_menu()

Implements hook_menu().

File

./calendar_systems.module, line 38
Contains Calendar Systems module hooks, helpers and API functions.

Code

function calendar_systems_menu() {
  $items = array();

  // Calendars listing form.
  $items['admin/settings/date-time/calendars'] = array(
    'title' => 'Calendars',
    'description' => 'Configuration options for all available calendars.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'calendar_systems_calendars_form',
    ),
    'access arguments' => array(
      'administer calendar systems',
    ),
    'file' => 'calendar_systems.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );

  // A calendar configuration form.
  $items['admin/settings/date-time/calendars/%'] = array(
    'title callback' => 'calendar_systems_calendar_title',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'calendar_systems_calendar_form',
      4,
    ),
    'access arguments' => array(
      'administer calendar systems',
    ),
    'file' => 'calendar_systems.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}