You are here

function revisioning_revert_confirm_post_submit in Revisioning 6.4

Same name and namespace in other branches
  1. 8 revisioning.pages.inc \revisioning_revert_confirm_post_submit()
  2. 6.3 revisioning.pages.inc \revisioning_revert_confirm_post_submit()
  3. 7 revisioning.pages.inc \revisioning_revert_confirm_post_submit()

Submission "post" handler for the revert_confirm form.

Runs AFTER the existing revert function in node.pages.inc

Note: It would be nice if publish and revert were symmetrical operations and that node_revision_revert_confirm_submit didn't save a physical copy of the revision (under a new vid), as this has the side-effect of making all "pending" revisions "archived". This is because the definition of "pending" is: "node_vid > current_vid". It would be better if "pending" relied on a separate flag rather than a field such as vid or timestamp that changes every time a piece of code executes a node_save().

1 string reference to 'revisioning_revert_confirm_post_submit'
revisioning_form_node_revision_revert_confirm_alter in ./revisioning.pages.inc
Implementation of hook_form_FORM_ID_alter(), see node.pages.inc/node_revision_revert_confirm()

File

./revisioning.pages.inc, line 199
Rendering and altering of pages and forms used by Revisioning

Code

function revisioning_revert_confirm_post_submit($form, &$form_state) {
  $node = $form['#node_revision'];

  //_revisioning_publish_node($node->nid); [#611988]
  module_invoke_all('revisionapi', 'post revert', $node);
}