You are here

function diff_inline_form_submit in Diff 7.2

Same name and namespace in other branches
  1. 6.2 diff.module \diff_inline_form_submit()
  2. 7.3 diff.module \diff_inline_form_submit()

Form submission handler for diff_inline_form() for JS-disabled clients.

1 string reference to 'diff_inline_form_submit'
diff_inline_form in ./diff.module
Form builder: Inline diff controls.

File

./diff.module, line 359
Provides functionality to show a diff between two node revisions.

Code

function diff_inline_form_submit(&$form, &$form_state) {
  if (isset($form_state['values']['revision'], $form_state['values']['node'])) {
    $node = $form_state['values']['node'];
    $vid = $form_state['values']['revision'];
    $form_state['redirect'] = "node/{$node->nid}/revisions/{$vid}/view";
  }
}