public function RoomsUnitUIController::addPage in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Creates the markup for the add Bookable Unit Entities page within the class so it can easily be extended/overridden.
File
- modules/
rooms_unit/ rooms_unit.admin.inc, line 123 - Rooms editing UI.
Class
- RoomsUnitUIController
- 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_unit_add_list',
'#content' => $content,
);
}