You are here

function _revisioning_delete_submit in Revisioning 6.4

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

Handler for the 'Delete this revision' button on the edit form.

Redirect to node/%/revisions/%/delete as opposed to node/%/delete

1 string reference to '_revisioning_delete_submit'
revisioning_form_alter in ./revisioning.pages.inc
Implementation of hook_form_alter().

File

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

Code

function _revisioning_delete_submit(&$form, &$form_state) {
  $nid = $form['#node']->nid;
  $vid = $form['#node']->vid;
  $form_state['redirect'][0] = "node/{$nid}/revisions/{$vid}/delete";
}