function revisioning_rules_event_info in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.rules.inc \revisioning_rules_event_info()
- 6.3 revisioning.rules.inc \revisioning_rules_event_info()
- 7 revisioning.rules.inc \revisioning_rules_event_info()
Implements hook_rules_event_info().
On behalf of the Revisioning module.
File
- ./
revisioning.rules.inc, line 18 - Rules integration for Revisioning module.
Code
function revisioning_rules_event_info() {
$default = array(
'group' => t('Revisioning'),
'variables' => _revisioning_rules_event_variables(),
);
$events = array(
'revisioning_post_update' => $default + array(
'label' => t('Content revision has been updated'),
),
'revisioning_pre_publish' => $default + array(
'label' => t('Content revision is going to be published'),
),
'revisioning_post_publish' => $default + array(
'label' => t('Pending revision has been published'),
),
'revisioning_pre_revert' => $default + array(
'label' => t('Content is going to be reverted to revision'),
),
'revisioning_post_revert' => $default + array(
'label' => t('Content has been reverted to revision'),
),
'revisioning_post_unpublish' => $default + array(
'label' => t('Content has been unpublished'),
),
'revisioning_pre_delete' => $default + array(
'label' => t('Content revision is going to be deleted'),
),
);
return $events;
}