You are here

function bat_event_form_wrapper in Booking and Availability Management Tools for Drupal 7

Form callback wrapper: edit a Event.

Parameters

BatEvent $event: The BatEvent object being edited by this form.

See also

bat_event_edit_form()

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

File

modules/bat_event/bat_event.admin.inc, line 145
Unit event editing UI.

Code

function bat_event_form_wrapper(BatEvent $event) {

  // Add the breadcrumb for the form's location.
  bat_event_set_breadcrumb();

  // Set the page title.
  $type = bat_event_get_types($event->type);
  drupal_set_title(t('#!event_id - !event_type', array(
    '!event_type' => $type->label,
    '!event_id' => $event->event_id,
  )));
  return drupal_get_form('bat_event_edit_form', $event);
}