hook_field_formatter_info()
cck.pre-rename/field.php, line 238
Declare information about a formatter.
An array keyed by formatter name. Each element of the array is an associative array with these keys and values:
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_field_formatter_info() {
return array(
'default' => array(
'label' => t('Default'),
'field types' => array('text'),
),
'plain' => array(
'label' => t('Plain text'),
'field types' => array('text'),
),
'trimmed' => array(
'label' => t('Trimmed'),
'field types' => array('text'),
),
);
}
?>