You are here

function nodehierarchy_action_info in Node Hierarchy 5

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

Implementation of hook_action_info().

File

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

Code

function nodehierarchy_action_info() {
  return array(
    'nodehierarchy_action_load' => array(
      '#label' => t('Load a content\'s parent content'),
      '#arguments' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Child content'),
        ),
      ),
      '#new arguments' => array(
        'node_parent' => array(
          '#entity' => 'node',
          '#label' => t('Parent content'),
        ),
      ),
      '#module' => t('Node Hierarchy'),
    ),
  );
}