You are here

function bat_fullcalendar_menu in Booking and Availability Management Tools for Drupal 7

Implements hook_menu().

File

modules/bat_fullcalendar/bat_fullcalendar.module, line 31
Manages the display of FullCalendar and provides ways for other modules to easily modify it.

Code

function bat_fullcalendar_menu() {
  $items = array();
  $items['admin/bat/fullcalendar/%/event/%bat_event_type/%/%bat_date/%bat_date'] = array(
    'title' => 'Event Management',
    'page callback' => 'bat_fullcalendar_event_management',
    'page arguments' => array(
      3,
      5,
      6,
      7,
      8,
    ),
    'access callback' => 'bat_fullcalendar_event_management_access',
    'access arguments' => array(
      3,
      5,
      6,
      7,
      8,
    ),
    'type' => MENU_CALLBACK,
    'weight' => 30,
  );
  $items['admin/bat/config/fullcalendar'] = array(
    'title' => 'Fullcalendar',
    'description' => 'Configure settings for Fullcalendar.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'bat_fullcalendar_settings',
    ),
    'access arguments' => array(
      'configure bat settings',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 30,
  );
  return $items;
}