You are here

function profile2_tab_revision_view in Profile 2 7.2

1 string reference to 'profile2_tab_revision_view'
profile2_menu in ./profile2.module
Implements hook_menu().

File

./profile2.revisions.inc, line 7

Code

function profile2_tab_revision_view($type, $account, $vid) {
  $current_profile = profile2_load_by_user($account, $type);
  $profile_revision = profile2_load($current_profile->pid, $vid);
  return profile2_view($profile_revision, 'revision');
}