function hook_revisionapi in Revisioning 7
Called when various revision operations happen.
Parameters
string $op: one of: 'pre publish' 'post publish' 'pre unpublish' 'post unpublish' 'post update' 'pre delete' 'post delete' 'pre revert' 'post revert'
object $node_revision:
2 functions implement hook_revisionapi()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- revisioning_revisionapi in ./
revisioning_api.inc - Implements hook_revisionapi().
- revisioning_scheduler_revisionapi in revisioning_scheduler/
revisioning_scheduler.module - Implements hook_revisionapi().
8 invocations of hook_revisionapi()
- revisioning_node_update in ./
revisioning.module - Implements hook_node_update().
- revisioning_revert_confirm_post_submit in ./
revisioning.pages.inc - Submission "post" handler for the revert_confirm form.
- revisioning_revert_confirm_pre_submit in ./
revisioning.pages.inc - Submission "pre" handler the revert_confirm form.
- revisioning_revision_delete_confirm_pre_submit in ./
revisioning.pages.inc - Submission "pre" handler for the node_revision_delete_confirm form.
- _revisioning_delete_revision in ./
revisioning_api.inc - Delete selected revision of node, provided it's not current.
File
- ./
revisioning.api.php, line 31 - API documentation for Revisioning module.
Code
function hook_revisionapi($op, $node_revision) {
if ($op == 'pre publish' && module_exists('rules')) {
rules_invoke_event('revisioning_pre_publish', $node);
}
}