function nodehierarchy_update_node in Node Hierarchy 7.2
Same name and namespace in other branches
- 6.3 nodehierarchy.module \nodehierarchy_update_node()
- 6.2 nodehierarchy.module \nodehierarchy_update_node()
- 7.4 nodehierarchy.admin.inc \nodehierarchy_update_node()
Update a node's parent and create menus etc.
1 call to nodehierarchy_update_node()
- nodehierarchy_node_update in ./
nodehierarchy.module - Implements hook_node_update().
File
- ./
nodehierarchy.module, line 708 - A module to make nodes hierarchical.
Code
function nodehierarchy_update_node(&$node) {
global $user;
if (user_access('edit all node parents') || $node->uid == $user->uid && user_access('edit own node parents')) {
_nodehierarchy_save_node($node);
}
}