Same name and namespace in other branches
  1. 5.x developer/hooks/core.php \hook_profile_alter()

Alter profile items before they are rendered.

You may omit/add/re-sort/re-categorize, etc.

Parameters

$account: A user object whose profile is being rendered. Profile items are stored in $account->content.

Related topics

1 invocation of hook_profile_alter()
user_build_content in modules/user/user.module
Builds a structured array representing the profile content.

File

developer/hooks/core.php, line 1066
These are the hooks that are invoked by the Drupal core.

Code

function hook_profile_alter(&$account) {
  foreach ($account->content as $key => $field) {

    // do something
  }
}