You are here

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

Menu title callback for showing individual entities.

1 string reference to 'rooms_unit_page_title'
RoomsUnitUIController::hook_menu in modules/rooms_unit/rooms_unit.admin.inc
Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.

File

modules/rooms_unit/rooms_unit.module, line 515
Manage units - Units are things that can be booked on a nightly basis (e.g. rooms - but also villas bungalows, etc).

Code

function rooms_unit_page_title(RoomsUnit $unit) {
  return $unit->name;
}