You are here

protected function RoomsUnit::defaultUri in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Override this in order to implement a custom default URI and specify 'entity_class_uri' as 'uri callback' hook_entity_info().

Overrides Entity::defaultUri

File

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

Class

RoomsUnit
The class used for room entities

Code

protected function defaultUri() {
  return array(
    'path' => 'unit/' . $this->unit_id,
  );
}