function revisioning_rules_action_info in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.rules.inc \revisioning_rules_action_info()
- 6.3 revisioning.rules.inc \revisioning_rules_action_info()
- 7 revisioning.rules.inc \revisioning_rules_action_info()
Implements hook_rules_action_info().
File
- ./
revisioning.rules.inc, line 202 - Rules integration for Revisioning module.
Code
function revisioning_rules_action_info() {
$default = array(
'group' => t('Revisioning'),
);
return array(
'revisioning_rules_action_publish_latest' => $default + array(
'label' => t('Publish the most recent pending revision'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('content'),
),
),
),
'revisioning_rules_action_load_current' => $default + array(
'label' => t('Load current revision of content'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('content'),
),
),
'new variables' => array(
'loaded_current_revision' => array(
'type' => 'node',
'label' => t('Loaded current revision of content'),
'save' => FALSE,
'label callback' => 'revisioning_rules_loaded_current_label',
),
),
),
);
}