You are here

protected function RoomsBooking::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_booking/rooms_booking.module, line 1020
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Class

RoomsBooking
The class used for Rooms Booking entities.

Code

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