function merci_inventory_menu in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 modules/merci_inventory/merci_inventory.module \merci_inventory_menu()
Implementation of hook_menu().
File
- modules/
merci_inventory/ merci_inventory.module, line 12 - Hooks and functions for MERCI Inventory
Code
function merci_inventory_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_inventory'] = array(
'title' => 'MERCI Inventory',
'page callback' => 'merci_inventory_admin_page',
'page arguments' => array(
$type_name,
),
'access callback' => 'merci_inventory_node_type_menu_access',
'access arguments' => array(
$type_name,
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
}
// foreach
return $items;
}