hook_def_alter(&$def)
importexportapi/docs/developer/hooks/importexportapi.php, line 66
Alter the data definition of one or more entities and its fields, as defined through hook_def().
&$def The data definitions of all entities and their fields, as defined through hook_def(). This parameter should be modified directly, as all changes to it are passed back by reference.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_def_alter(&$def) {
if (isset($def['user'])) {
$def['user']['mode'] = array(
'#type' => 'int',
'#title' => t('Comment viewing mode')
);
$def['user']['sort'] = array(
'#type' => 'int',
'#title' => t('Comment viewing order')
);
$def['user']['signature'] = array(
'#title' => t('Signature')
);
}
}
?>