function profile2_delete_access in Profile 2 7
Same name and namespace in other branches
- 7.2 profile2.module \profile2_delete_access()
Determines whether the given user has access to delete a profile.
File
- ./
profile2.module, line 1199 - Support for configurable user profiles.
Code
function profile2_delete_access($uid, $type_name) {
$profile = profile2_by_uid_load($uid, $type_name);
return is_object($profile) ? profile2_access('edit', $profile) : FALSE;
}