You are here

function rooms_unit_set_breadcrumb in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Sets the breadcrumb for administrative rooms pages.

3 calls to rooms_unit_set_breadcrumb()
rooms_unit_create_form_wrapper in modules/rooms_unit/rooms_unit.admin.inc
Form callback wrapper: create a Unit.
rooms_unit_delete_form_wrapper in modules/rooms_unit/rooms_unit.admin.inc
Form callback wrapper: delete a unit.
rooms_unit_form_wrapper in modules/rooms_unit/rooms_unit.admin.inc
Form callback wrapper: edit a Bookable Unit.

File

modules/rooms_unit/rooms_unit.admin.inc, line 615
Rooms editing UI.

Code

function rooms_unit_set_breadcrumb() {
  $breadcrumb = array(
    l(t('Home'), '<front>'),
    l(t('Administration'), 'admin'),
    l(t('Rooms'), 'admin/rooms'),
    l(t('Rooms'), 'admin/rooms/units'),
  );
  drupal_set_breadcrumb($breadcrumb);
}