function profile2_page_access in Profile 2 7.2
Check access by profile type for the current user.
1 string reference to 'profile2_page_access'
- profile2_page_menu in contrib/
profile2_page.module - Implements hook_menu().
File
- contrib/
profile2_page.module, line 234 - Adds separate pages for viewing and editing profiles.
Code
function profile2_page_access($op, $type_name) {
global $user;
if ($profile = profile2_by_uid_load($user->uid, $type_name)) {
return profile2_access($op, $profile);
}
return FALSE;
}