function merci_inventory_node_type_menu_access in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Access check
1 call to merci_inventory_node_type_menu_access()
- merci_admin_settings in ./
merci.module - Builds the MERCI admininstration settings form.
1 string reference to 'merci_inventory_node_type_menu_access'
- merci_inventory_menu in modules/
merci_inventory/ merci_inventory.module - Implementation of hook_menu().
File
- modules/
merci_inventory/ merci_inventory.module, line 40 - Hooks and functions for MERCI Inventory
Code
function merci_inventory_node_type_menu_access($type_name) {
$types = merci_inventory_sync_resource_types();
if (!in_array($type_name, $types) && user_access('administer MERCI')) {
return TRUE;
}
// if
return FALSE;
}