function view_profiles_perms_menu_alter in View profiles permissions 7
Same name and namespace in other branches
- 6 view_profiles_perms.module \view_profiles_perms_menu_alter()
Implements hook_menu_alter().
Takes over the access callback for user profiles.
File
- ./
view_profiles_perms.module, line 44 - Restricts viewing user profiles based on user roles
Code
function view_profiles_perms_menu_alter(&$items) {
$items['user/%user']['access callback'] = 'view_profiles_perms_access';
}