You are here

function diff_node_revisions_submit in Diff 5.2

Same name and namespace in other branches
  1. 5 diff.module \diff_node_revisions_submit()
  2. 6.2 diff.pages.inc \diff_node_revisions_submit()
  3. 6 diff.module \diff_node_revisions_submit()
  4. 7.3 diff.pages.inc \diff_node_revisions_submit()
  5. 7.2 diff.pages.inc \diff_node_revisions_submit()

Submit code for input form to select two revisions.

File

./diff.module, line 281

Code

function diff_node_revisions_submit($form_id, $form_values) {

  // the ids are ordered so the old revision is always on the left
  $old_vid = min($form_values['old'], $form_values['new']);
  $new_vid = max($form_values['old'], $form_values['new']);
  return 'node/' . $form_values['nid'] . '/revisions/view/' . $old_vid . '/' . $new_vid;
}