function revisioning_rules_event_info in Revisioning 6.3
Same name and namespace in other branches
- 8 revisioning.rules.inc \revisioning_rules_event_info()
- 6.4 revisioning.rules.inc \revisioning_rules_event_info()
- 7 revisioning.rules.inc \revisioning_rules_event_info()
Implementation of hook_rules_event_info().
File
- ./
revisioning.rules.inc, line 95 - Rules integration for Revisioning module.
Code
function revisioning_rules_event_info() {
$default = array(
'module' => 'Revisioning',
'arguments' => _revisioning_rules_event_arguments(),
'redirect' => TRUE,
);
$events = array(
'revisioning_post_unpublish' => $default + array(
'label' => t('Node has been unpublished'),
),
'revisioning_post_publish' => $default + array(
'label' => t('Pending revision has been published'),
),
'revisioning_post_revert' => $default + array(
'label' => t('Node has been reverted to revision'),
),
'revisioning_pre_publish' => $default + array(
'label' => t('Node revision is going to be published'),
),
'revisioning_pre_delete' => $default + array(
'label' => t('Node revision is going to be deleted'),
),
'revisioning_pre_revert' => $default + array(
'label' => t('Node is going to be reverted to revision'),
),
);
return $events;
}