function _menu_node_invoke in Menu Node API 6
Same name and namespace in other branches
- 7 menu_node.module \_menu_node_invoke()
Wrapper function for module hooks.
Parameters
$nid: The node id.
$mlid: The menu link id.
$hook: The hook to invoke ('insert', 'update', or 'delete').
1 call to _menu_node_invoke()
- menu_node_save in ./
menu_node.module - Save records to the {menu_node} table.
File
- ./
menu_node.module, line 305 - Menu Node API Manages relationships between the {node} and {menu_links} table.
Code
function _menu_node_invoke($nid, $mlid, $hook) {
// Use our internal lookup fuinctions.
$node = menu_node_get_node($mlid);
$items = menu_node_get_links($nid);
module_invoke_all('menu_node_' . $hook, $items[$mlid], $node);
}