function hook_profile_alter
6.x core.php | hook_profile_alter(&$account) |
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 drupal-6.x/
modules/ user/ user.module - Builds a structured array representing the profile content.
File
- documentation-6.x/
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
}
}