You are here

function appointment_calendar_menu in Appointment Calendar 7

Implements hook_menu().

File

./appointment_calendar.module, line 39
Adds Appointment calendar filtering and displays Availability.

Code

function appointment_calendar_menu() {
  $items = array();
  $items['admin/config/appointment-calendar/settings'] = array(
    'title' => 'Appointment Calendar',
    'description' => 'Configuration Page for Appointment Calendar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'appointment_calendar_settings_form',
    ),
    'file' => 'appointment_calendar_admin_settings.inc',
    'access arguments' => array(
      'access appointment calendar settings page',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/appointment-calendar/settings/list-date'] = array(
    'title' => 'Appointment Calendar Date List',
    'description' => 'List of Appointment Calendar Date(s) that have time slot(s)',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'appointment_calendar_date_list_form',
    ),
    'file' => 'appointment_calendar_list.inc',
    'access arguments' => array(
      'access appointment calendar list page',
    ),
  );
  $items['admin/appointment-calendar/view'] = array(
    'title' => 'Appointment Calendar Date View',
    'description' => 'View Appointment Calendar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'appointment_calendar_view_date_form',
    ),
    'file' => 'appointment_calendar_view.inc',
    'access arguments' => array(
      'access appointment calendar view page',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['admin/appointment-calendar/edit'] = array(
    'title' => 'Appointment Calendar Date Edit',
    'description' => 'Edit Appointment Calendar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'appointment_calendar_list_date_form',
    ),
    'file' => 'appointment_calendar_edit.inc',
    'access arguments' => array(
      'access appointment calendar edit page',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['admin/appointment-calendar/delete'] = array(
    'title' => 'Appointment Calendar Date Delete',
    'description' => 'Delete Appointment Calendar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'appointment_calendar_list_delete_form',
    ),
    'file' => 'appointment_calendar_delete.inc',
    'access arguments' => array(
      'access appointment calendar delete page',
    ),
    'type' => MENU_SUGGESTED_ITEM,
  );
  $items['appointcal'] = array(
    'page callback' => 'appointment_calendar_appointment_show',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}