You are here

function user_rev_diff_latest in User Revision 7.2

Menu callback - show latest diff for a given node.

1 string reference to 'user_rev_diff_latest'
user_rev_diff_menu in diff/user_rev_diff.module
Implementation of hook_menu().

File

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

Code

function user_rev_diff_latest($user) {
  $revisions = user_revision_list($user);
  $new = array_shift($revisions);
  $old = array_shift($revisions);
  drupal_goto(_user_revision_base_path($user) . "/diff/{$old->vid}/{$new->vid}");
}