function availability_calendars_menu in Availability Calendars 6
Same name and namespace in other branches
- 5 availability_calendars.module \availability_calendars_menu()
- 6.2 availability_calendars.module \availability_calendars_menu()
- 7.2 availability_calendars.module \availability_calendars_menu()
Implementation of hook_menu().
Return value
array
File
- ./
availability_calendars.module, line 69 - Availability Calendars Module.
Code
function availability_calendars_menu() {
$items = array();
$items['admin/settings/availability-calendars'] = array(
'title' => 'Availability Calendars',
'description' => 'Configure global settings for availability calendars module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'availability_calendars_admin_settings',
),
'access arguments' => array(
'edit availability calendars',
),
);
$items['availability-calendars/%'] = array(
'title' => 'Availability calendar',
'page callback' => 'availability_calendars_page',
'page arguments' => array(
1,
),
'access callback' => 'availability_can_edit',
'access arguments' => array(
1,
),
'type' => MENU_CALLBACK,
);
return $items;
}