You are here

function commons_profile_user in Drupal Commons 6.2

Implementation of hook_user()

File

modules/features/commons_profile/commons_profile.module, line 84

Code

function commons_profile_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'view':

      // Hide user profile and related information that
      // is displayed via commons_profile_block().
      $account->content[t('Personal information')]['#access'] = FALSE;
      $account->content['user_relationships_ui']['#access'] = FALSE;
      $account->content['user_picture']['#access'] = FALSE;
      $account->content['userpoints']['#access'] = FALSE;
      $account->content['user_badges']['#access'] = FALSE;
      break;
  }
}