You are here

function bat_event_page_view in Booking and Availability Management Tools for Drupal 7

Sets up content to show an individual event.

1 string reference to 'bat_event_page_view'
BatEventUIController::hook_menu in modules/bat_event/bat_event.admin.inc
Overrides hook_menu() defaults.

File

modules/bat_event/bat_event.module, line 982
Manage Events - Events store the EventValue of a Unit over a period of time.

Code

function bat_event_page_view($event, $view_mode = 'full') {
  $controller = entity_get_controller('bat_event');
  $content = $controller
    ->view(array(
    $event->event_id => $event,
  ));
  return $content;
}