function merci_reservation_entity_info_alter in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Implements hook_entity_info_alter().
File
- merci_reservation/
merci_reservation.module, line 178
Code
function merci_reservation_entity_info_alter(&$entity_info) {
foreach (merci_reservation_types() as $type => $info) {
$entity_info['merci_reservation']['bundles'][$type] = array(
'label' => $info->label,
'admin' => array(
'path' => 'admin/merci/merci-reservation-types/manage/%merci_reservation_type',
'real path' => 'admin/merci/merci-reservation-types/manage/' . $type,
'bundle argument' => 4,
'access arguments' => array(
'administer merci_reservation types',
),
),
);
}
}