You are here

function bat_event_set_breadcrumb in Booking and Availability Management Tools for Drupal 7

Sets the breadcrumb for administrative BAT pages.

3 calls to bat_event_set_breadcrumb()
bat_event_create_form_wrapper in modules/bat_event/bat_event.admin.inc
Form callback wrapper: create a Event.
bat_event_delete_form_wrapper in modules/bat_event/bat_event.admin.inc
Form callback wrapper: delete a event.
bat_event_form_wrapper in modules/bat_event/bat_event.admin.inc
Form callback wrapper: edit a Event.

File

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

Code

function bat_event_set_breadcrumb() {
  $breadcrumb = array(
    l(t('Home'), '<front>'),
    drupal_valid_path('admin') ? l(t('Administration'), 'admin') : '',
    drupal_valid_path('admin/bat') ? l(t('BAT'), 'admin/bat') : '',
    drupal_valid_path('admin/bat/events') ? l(t('Events'), 'admin/bat/events') : '',
  );
  drupal_set_breadcrumb(array_filter($breadcrumb));
}