function profile2_revision_view in Profile 2 7.2
File
- contrib/
profile2_page.module, line 311 - Adds separate pages for viewing and editing profiles.
Code
function profile2_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);
}