You are here

function user_rev_diff_user_revisions_submit in User Revision 7.2

Submit code for input form to select two revisions.

File

diff/user_rev_diff.pages.inc, line 86
Menu callbacks for hook_menu().

Code

function user_rev_diff_user_revisions_submit($form, &$form_state) {

  // the ids are ordered so the old revision is always on the left
  $old_vid = min($form_state['values']['old'], $form_state['values']['new']);
  $new_vid = max($form_state['values']['old'], $form_state['values']['new']);
  $uid = $form_state['values']['uid'];
  $form_state['redirect'] = _user_revision_base_path($uid) . "/diff/{$old_vid}/{$new_vid}";
}