function profile2_view in Profile 2 7.2
Same name and namespace in other branches
- 7 profile2.module \profile2_view()
View a profile.
See also
4 calls to profile2_view()
- profile2_diff_diffs_show in contrib/
profile2_diff.pages.inc - Create output string for a comparison of 'profile' between versions 'old_vid' and 'new_vid'.
- profile2_profile_revision_view in contrib/
profile2_page.module - profile2_revision_view in contrib/
profile2_page.module - profile2_tab_revision_view in ./
profile2.revisions.inc
File
- ./
profile2.module, line 1368 - Support for configurable user profiles.
Code
function profile2_view($profile, $view_mode = 'full', $langcode = NULL, $page = NULL) {
$account = user_load($profile->uid);
drupal_set_title(t('Revision of %profile from %date', array(
'%profile' => $profile
->label(),
'%date' => format_date($profile->revision_timestamp),
)), PASS_THROUGH);
return $profile
->view($view_mode, $langcode, $page);
}