You are here

function jquery_calendar_menu in jQuery World Calendars API 7

Implements hook_menu().

File

./jquery_calendar.module, line 27
Implements necessary hooks, API and helpers for jQuery World Calendars.

Code

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

  // Administration form:
  $items['admin/config/user-interface/jquery-calendar'] = array(
    'title' => 'jQuery Calendar API',
    'description' => 'Configuration options for jQuery World Calendars.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'jquery_calendar_form_settings',
    ),
    'access arguments' => array(
      'administer jquery calendar',
    ),
    'file' => 'jquery_calendar.admin.inc',
  );

  // Settings default tab:
  $items['admin/config/user-interface/jquery-calendar/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );

  // Demonstration tab:
  $items['admin/config/user-interface/jquery-calendar/demo'] = array(
    'title' => 'Demonstration',
    'description' => 'jQuery World Calendar demonstration.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'jquery_calendar_form_demo',
    ),
    'access arguments' => array(
      'administer jquery calendar',
    ),
    'file' => 'jquery_calendar.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  return $items;
}