function revisioning_rules_event_info_alter in Revisioning 7
Implements hook_rules_event_info_alter().
Add revision variable to all events with node. [#2232451]
File
- ./
revisioning.rules.inc, line 54 - Rules integration for Revisioning module.
Code
function revisioning_rules_event_info_alter(&$events) {
foreach ($events as $key => $event) {
if (isset($event['variables'])) {
foreach ($event['variables'] as $name => $variable) {
if ($variable['type'] == 'node') {
$extra = _revisioning_rules_event_variables();
unset($extra['node']);
$events[$key]['variables'] += $extra;
}
}
}
}
}