function view_profiles_perms_menu_alter in View profiles permissions 6
Same name and namespace in other branches
- 7 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 39 - Restricts viewing user profiles based on user roles
Code
function view_profiles_perms_menu_alter(&$items) {
$items['user/%user_uid_optional']['access callback'] = 'view_profiles_perms_access';
}