You are here

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

Page to add Rooms.

@todo Pass this through a proper theme function

1 string reference to 'rooms_unit_add_page'
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.admin.inc, line 579
Rooms editing UI.

Code

function rooms_unit_add_page() {
  $controller = entity_ui_controller('rooms_unit');
  return $controller
    ->addPage();
}