You are here

function nodehierarchy_action_load in Node Hierarchy 6.2

Same name and namespace in other branches
  1. 5 nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
  2. 6.3 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()
  3. 6 nodehierarchy_workflow_ng.inc \nodehierarchy_action_load()

Loads the node's parent.

File

includes/nodehierarchy_workflow_ng.inc, line 49
Some workflow-ng conditions/actions

Code

function nodehierarchy_action_load($node, $settings) {
  $parents = nodehierarchy_get_node_parent_nids($nid);
  if ($parent = node_load($pnid)) {
    return array(
      '#new arguments' => array(
        'node_parent' => $parent,
      ),
    );
  }
}