function nodehierarchy_action_load in Node Hierarchy 6
Same name and namespace in other branches
- 5 nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
- 6.3 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
- 6.2 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
Loads the node's parent.
File
- ./
nodehierarchy_workflow_ng.inc, line 49 - Some workflow-ng conditions/actions
Code
function nodehierarchy_action_load($node, $settings) {
if ($parent = node_load($node->parent)) {
return array(
'#new arguments' => array(
'node_parent' => $parent,
),
);
}
}