hook_profile_alter

Versions
5
hook_profile_alter(&$account, &$fields)
6
hook_profile_alter(&$account)

Perform alterations 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.

Return value

None.

Related topics

Code

developer/hooks/core.php, line 997

<?php
function hook_profile_alter(&$account) {
  foreach ($account->content AS $key => $field) {
    // do something
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.