You are here

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

URI callback for units.

File

modules/rooms_unit/rooms_unit.module, line 506
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_uri(RoomsUnit $unit) {
  return array(
    'path' => 'unit/' . $unit->unit_id,
  );
}