You are here

function user_revision_show in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.module \user_revision_show()

Show a revision.

1 string reference to 'user_revision_show'
user_revision_menu in ./user_revision.module
Implements hook_menu().

File

./user_revision.module, line 380
Enables user revision.

Code

function user_revision_show($user, $vid) {
  $account = user_revision_load($user->uid, $vid);
  drupal_set_title(t('Revision of %title from %date', array(
    '%title' => $user->name,
    '%date' => format_date($account->revision_timestamp),
  )), PASS_THROUGH);
  return user_view_page($account, 'revision');
}