| Versionen | |
|---|---|
| drupal6 – drupal7 | hook_profile_alter(&$account) |
Perform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc.
$account A user object whose profile is being rendered. Profile items are stored in $account->content.
None.
modules/
<?php
function hook_profile_alter(&$account) {
foreach ($account->content as $key => $field) {
// do something
}
}
?>
Kommentare
Kommentar hinzufügen