You are here

function revisioning_publish_confirm_submit in Revisioning 6

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

Submission handler for the publish_confirm form.

File

./revisioning.module, line 250

Code

function revisioning_publish_confirm_submit($form, &$form_state) {
  $nid = $form_state['values']['node_id'];
  $title = $form_state['values']['title'];
  $vid = $form_state['values']['revision'];
  $type = $form_state['values']['type'];
  _revisioning_publish_revision($nid, $vid, $title, $type);

  // Redirect to the same page as unpublish and revert
  $form_state['redirect'] = "node/{$nid}/revisions";
}