You are here

function profile2_tab_get_revision_revert in Profile 2 7.2

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

File

./profile2.revisions.inc, line 13

Code

function profile2_tab_get_revision_revert($type, $account, $vid) {
  $current_profile = profile2_load_by_user($account, $type);
  $profile_revision = profile2_load($current_profile->pid, $vid);
  return drupal_get_form('profile2_revision_revert_confirm', $profile_revision);
}