1 list.module | list_field_formatter_info() |
Implements hook_field_formatter_info().
File
- core/
modules/ field/ modules/ list/ list.module, line 482 - Defines list field types that can be used with the Options module.
Code
function list_field_formatter_info() {
return array(
'list_default' => array(
'label' => t('Default'),
'field types' => array('list_integer', 'list_float', 'list_text', 'list_boolean'),
),
'list_key' => array(
'label' => t('Key'),
'field types' => array('list_integer', 'list_float', 'list_text', 'list_boolean'),
),
'boolean_yes_no' => array(
'label' => t('Yes/No'),
'field types' => array('list_boolean'),
'settings' => array(
'format' => 'yes-no',
'custom_on' => '',
'custom_off' => '',
'reverse' => 0,
),
)
);
}