function _nodehierarchy_default_menu_link in Node Hierarchy 7.2
Same name and namespace in other branches
- 6.3 nodehierarchy.module \_nodehierarchy_default_menu_link()
- 6.2 nodehierarchy.module \_nodehierarchy_default_menu_link()
Get the default menu link values for a new nodehierarchy menu link.
4 calls to _nodehierarchy_default_menu_link()
- nodehierarchy_nodehierarchy_default_parents in ./
nodehierarchy.module - Set the default parents for a node.
- nodehierarchy_nodehierarchy_node_form in ./
nodehierarchy.module - Get the node edit form for nodehierarchy.
- nodehierarchy_update_6200 in ./
nodehierarchy.install - Update from the 5.x or 6.x-1.x branches.
- _nodehierarchy_create_node_menu_link in ./
nodehierarchy.module - Get the menu link for the given node.
File
- ./
nodehierarchy.module, line 1388 - A module to make nodes hierarchical.
Code
function _nodehierarchy_default_menu_link($nid = NULL, $plid = 0, $enabled = FALSE) {
return array(
'mlid' => NULL,
'module' => 'nodehierarchy',
'menu_name' => variable_get('nodehierarchy_default_menu_name', 'navigation'),
'router_path' => 'node/%',
'link_path' => !empty($nid) ? 'node/' . $nid : '',
'hidden' => !$enabled,
'enabled' => $enabled,
'plid' => $plid,
'weight' => 0,
'nid' => !empty($nid) ? $nid : NULL,
'customized' => 0,
);
}