function fullcalendar_menu in FullCalendar 7
Same name and namespace in other branches
- 6.2 fullcalendar.module \fullcalendar_menu()
- 6 fullcalendar.module \fullcalendar_menu()
- 7.2 fullcalendar.module \fullcalendar_menu()
Implements hook_menu().
Return value
An array of menu items.
File
- ./
fullcalendar.module, line 80 - Provides a views style plugin for FullCalendar
Code
function fullcalendar_menu() {
$items = array();
$items['admin/config/calendar'] = array(
'title' => 'Calendar',
'description' => 'Settings for calendars.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/calendar/fullcalendar'] = array(
'title' => 'FullCalendar',
'description' => 'Adjust FullCalendar settings.',
'file' => 'fullcalendar.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fullcalendar_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
$items['fullcalendar/ajax/update/%/%node'] = 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,
);
return $items;
}