public function ReservationTypeUIController::hook_menu in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Provides definitions for implementing hook_menu().
Overrides EntityDefaultUIController::hook_menu
File
- merci_reservation/
includes/ entity_type.ui.inc, line 16
Class
- ReservationTypeUIController
- UI controller providing UI for content entities.
Code
public function hook_menu() {
$items = parent::hook_menu();
foreach (merci_line_item_types() as $type => $line_item_type) {
// Convert underscores to hyphens for the menu item argument.
// $type_arg = strtr($type, '_', '-');
$items['admin/merci/merci-reservation-types/' . $type] = array(
'title' => $line_item_type->label,
'page callback' => 'merci_reservation_type_redirect',
'page arguments' => array(
$type,
),
'access arguments' => array(
'administer merci line item types',
),
);
}
return $items;
}