function rules_events_node_variables

Returns some parameter suitable for using it with a node.

Related topics

2 calls to rules_events_node_variables()
hook_rules_event_info in ./rules.api.php
Define rules events.
rules_node_event_info in modules/node.rules.inc
Implements hook_rules_event_info() on behalf of the node module.

File

modules/node.rules.inc, line 89

Code

function rules_events_node_variables($node_label, $update = FALSE) {
    $args = array(
        'node' => array(
            'type' => 'node',
            'label' => $node_label,
        ),
    );
    if ($update) {
        $args += array(
            'node_unchanged' => array(
                'type' => 'node',
                'label' => t('unchanged content'),
                'handler' => 'rules_events_entity_unchanged',
            ),
        );
    }
    return $args;
}