function bat_fullcalendar_event_management_access in Booking and Availability Management Tools for Drupal 7
The EventManager page access callback.
Parameters
$entity_id:
string $event_type:
$event_id:
$start_date:
$end_date:
1 string reference to 'bat_fullcalendar_event_management_access'
- bat_fullcalendar_menu in modules/
bat_fullcalendar/ bat_fullcalendar.module - Implements hook_menu().
File
- modules/
bat_fullcalendar/ bat_fullcalendar.module, line 66 - Manages the display of FullCalendar and provides ways for other modules to easily modify it.
Code
function bat_fullcalendar_event_management_access($entity_id, $event_type, $event_id, $start_date, $end_date) {
if ($event_id == 0) {
return bat_event_access('create', bat_event_create(array(
'type' => $event_type->type,
)));
}
else {
$event = bat_event_load($event_id);
return bat_event_access('update', $event);
}
}