You are here

function fullcalendar_menu in FullCalendar 7.2

Same name and namespace in other branches
  1. 6.2 fullcalendar.module \fullcalendar_menu()
  2. 6 fullcalendar.module \fullcalendar_menu()
  3. 7 fullcalendar.module \fullcalendar_menu()

Implements hook_menu().

Return value

array An array of menu items.

File

./fullcalendar.module, line 103
Provides a views style plugin for FullCalendar

Code

function fullcalendar_menu() {
  $items = array();
  $items['admin/config/user-interface/fullcalendar'] = array(
    'title' => 'FullCalendar',
    'description' => 'Adjust FullCalendar settings.',
    'file' => 'fullcalendar.admin.inc',
    'file path' => drupal_get_path('module', 'fullcalendar') . '/includes',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fullcalendar_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 0,
  );
  $items['admin/config/user-interface/fullcalendar/default'] = array(
    'title' => 'FullCalendar',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['fullcalendar/ajax/update/%/%'] = array(
    'title' => 'Update event',
    'description' => 'Save the updated event datetime.',
    'page callback' => 'fullcalendar_update',
    'page arguments' => array(
      3,
      4,
    ),
    'access callback' => '_fullcalendar_update_access',
    'access arguments' => array(
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['fullcalendar/ajax/results'] = array(
    'title' => 'Events',
    'description' => 'Get events from views with arguments',
    'page callback' => 'fullcalendar_results',
    'access arguments' => array(
      'access content',
    ),
    'delivery callback' => 'ajax_deliver',
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
  );
  return $items;
}