You are here

public function RoomsBookingUIController::addPage in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Create the markup for the add Booking Entities page within the class so it can easily be extended/overriden.

File

modules/rooms_booking/rooms_booking.admin.inc, line 114
Rooms editing UI.

Class

RoomsBookingUIController
UI controller.

Code

public function addPage() {
  $item = menu_get_item();
  $content = system_admin_menu_block($item);
  if (count($content) == 1) {
    $item = array_shift($content);
    drupal_goto($item['href']);
  }
  return array(
    '#theme' => 'rooms_booking_add_list',
    '#content' => $content,
  );
}