You are here

function view_profiles_perms_permission_name in View profiles permissions 6

Same name and namespace in other branches
  1. 7 view_profiles_perms.module \view_profiles_perms_permission_name()

Helper function to build the permission name

2 calls to view_profiles_perms_permission_name()
view_profiles_perms_access in ./view_profiles_perms.module
Access callback for user profiles.
view_profiles_perms_perm in ./view_profiles_perms.module
Implements hook_perm().

File

./view_profiles_perms.module, line 30
Restricts viewing user profiles based on user roles

Code

function view_profiles_perms_permission_name($role_name) {
  return "access {$role_name} profiles";
}