function revisioning_revert_confirm_pre_submit in Revisioning 8
Same name and namespace in other branches
- 6.4 revisioning.pages.inc \revisioning_revert_confirm_pre_submit()
- 6.3 revisioning.pages.inc \revisioning_revert_confirm_pre_submit()
- 7 revisioning.pages.inc \revisioning_revert_confirm_pre_submit()
Submission "pre" handler the revert_confirm form.
Runs BEFORE the existing revert function in node.pages.inc
1 string reference to 'revisioning_revert_confirm_pre_submit'
File
- ./
revisioning.pages.inc, line 258 - Rendering and altering of pages and forms used by Revisioning.
Code
function revisioning_revert_confirm_pre_submit($form, &$form_state) {
$node = $form['#node_revision'];
$return = module_invoke_all('revisionapi', 'pre revert', $node);
if (in_array(FALSE, $return)) {
drupal_goto('node/' . $node->nid . '/revisions/' . $node->vid . '/view');
die;
}
}