You are here

function nodehierarchy_action_load in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
  2. 6 nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
  3. 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,
      ),
    );
  }
}