function merci_rro_menu in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Implementation of hook_menu().
File
- modules/
merci_rro/ merci_rro.module, line 12 - Hooks and utility functions for MERCI Role Rule Override
Code
function merci_rro_menu() {
$items = array();
foreach (array_keys(node_get_types()) as $type_name) {
$type_url_str = str_replace('_', '-', $type_name);
$items['admin/content/node-type/' . $type_url_str . '/merci_rro'] = array(
'title' => 'MERCI Role Rule Overrides',
'page callback' => 'merci_rro_admin_page',
'page arguments' => array(
$type_name,
),
'access callback' => 'merci_rro_node_type_menu_access',
'access arguments' => array(
$type_name,
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
'file' => 'merci_rro.admin.inc',
);
}
// foreach
return $items;
}