| Versionen | |
|---|---|
| drupal6 – drupal7 | hook_profile_alter(&$account) |
Alter 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.
developer-docs/
<?php
function hook_profile_alter(&$account) {
foreach ($account->content as $key => $field) {
// do something
}
}
?>
Kommentare
Kommentar hinzufügen