You are here

function nodehierarchy_action_info in Node Hierarchy 6.2

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

Implementation of hook_action_info()

File

includes/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'),
    ),
  );
}