users

Here is an example that restricts access for an admin of an organic group to his own profile.

/**
 *  Implementation of hook_menu_alter() 
 */ 
function tandem_internal_menu_alter(&$callbacks) {
  $callbacks['user/%user/delete']['access callback'] = 'tandem_internal_restrict_access_to_profile';
  $callbacks['user/%user_category/edit']['access callback'] = 'tandem_internal_restrict_access_to_profile';
  $callbacks['user/%user_category/edit/account']['access callback'] = 'tandem_internal_restrict_access_to_profile';

Syndicate content