Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //how to get the profile2 'pid' of the current user for $profile in the following function
- function profile2_access_control_get_pac_acl_id($profile, $op) {
- $pac_acl_id = pac_acl_get_id_by_name('profile2_access_control', $op . '_' . $profile->pid);
- if (!$pac_acl_id) {
- $pac_acl_id = pac_acl_create_new_pac_acl('profile2_access_control', $op . '_' . $profile->pid);
- }
- return $pac_acl_id;
- }
Add Comment
Please, Sign In to add comment