You are here

function nodereference_rules_action_info in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/nodereference/nodereference.rules.inc \nodereference_rules_action_info()

Implementation of hook_rules_action_info().

File

modules/nodereference/nodereference.rules.inc, line 11
Provides additional rules support for nodereference fields.

Code

function nodereference_rules_action_info() {
  $info = array();
  $info['nodereference_rules_action_load'] = array(
    'label' => t('Load a referenced node'),
    'arguments' => array(
      'node' => array(
        'type' => 'node',
        'label' => t('Content containing the node reference field'),
      ),
    ),
    'new variables' => array(
      'referenced_node' => array(
        'type' => 'node',
        'label' => t('Referenced content'),
      ),
    ),
    'module' => 'CCK',
    'help' => t('Note that if the field has multiple values, only the first content node will be loaded.'),
  );
  return $info;
}