You are here

function bat_unit_set_breadcrumb in Booking and Availability Management Tools for Drupal 7

Sets the breadcrumb for administrative BAT pages.

4 calls to bat_unit_set_breadcrumb()
bat_unit_create_form_wrapper in modules/bat_unit/bat_unit.admin.inc
Form callback wrapper: create a Unit.
bat_unit_delete_form_wrapper in modules/bat_unit/bat_unit.admin.inc
Form callback wrapper: delete a unit.
bat_unit_form in modules/bat_unit/bat_unit.admin.inc
Form callback: edit a Unit.
bat_unit_form_wrapper in modules/bat_unit/bat_unit.admin.inc
Form callback wrapper: edit a Unit.

File

modules/bat_unit/bat_unit.admin.inc, line 475
BatUnit editing UI.

Code

function bat_unit_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/config') ? l(t('Configuration'), 'admin/bat/config') : '',
    drupal_valid_path('admin/bat/config/units') ? l(t('Units'), 'admin/bat/config/units') : '',
  );
  drupal_set_breadcrumb(array_filter($breadcrumb));
}