public function RoomsBookingTypeUIController::hook_menu in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Overrides hook_menu() defaults.
Overrides EntityDefaultUIController::hook_menu
File
- modules/
rooms_booking/ rooms_booking_type.admin.inc, line 16 - RoomsBooking type editing UI.
Class
- RoomsBookingTypeUIController
- UI controller.
Code
public function hook_menu() {
$items = parent::hook_menu();
foreach ($items as &$item) {
unset($item['access callback']);
$item['access arguments'] = array(
'administer rooms_booking_type entities',
);
}
$items[$this->path]['description'] = 'Manage booking types, including adding and removing fields and the display of fields.';
$items[$this->path]['weight'] = '3';
$items[$this->path]['type'] = MENU_LOCAL_TASK;
return $items;
}