function bat_event_load in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_event/bat_event.module \bat_event_load()
Fetches an event object.
Parameters
int $event_id: Integer specifying the event id.
bool $reset: A boolean indicating that the internal cache should be reset.
Return value
object A fully-loaded $event object or FALSE if it cannot be loaded.
See also
8 calls to bat_event_load()
- BatEventController::delete in modules/
bat_event/ bat_event.module - bat_event_edit_form_validate in modules/
bat_event/ bat_event.admin.inc - Form API validate callback for the event form.
- bat_event_form_submit_delete in modules/
bat_event/ bat_event.admin.inc - Form API submit callback for the delete button.
- bat_event_handler_value_field::render in modules/
bat_event/ views/ bat_event_handler_value_field.inc - Render the field.
- bat_fullcalendar_bat_fullcalendar_modal_content in modules/
bat_fullcalendar/ bat_fullcalendar.module - Implements hook_bat_fullcalendar_modal_content().
File
- modules/
bat_event/ bat_event.module, line 858 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_load($event_id, $reset = FALSE) {
$events = bat_event_load_multiple(array(
$event_id,
), array(), $reset);
return reset($events);
}