function double_field_field_formatter_info in Double Field 7
Same name and namespace in other branches
- 7.2 double_field.module \double_field_field_formatter_info()
Implements hook_field_formatter_info().
1 call to double_field_field_formatter_info()
- Double_fieldTestCase::testAdminUI in tests/
double_field.test - Test admin UI.
File
- ./
double_field.module, line 199 - Defines double text field type.
Code
function double_field_field_formatter_info() {
$settings = array(
'first' => array(
'prefix' => '',
'suffix' => ' ',
),
'second' => array(
'prefix' => '',
'suffix' => '',
),
);
return array(
'double_field_inline' => array(
'label' => t('Inline'),
'field types' => array(
'double_field',
),
'settings' => $settings,
),
'double_field_block' => array(
'label' => t('Block'),
'field types' => array(
'double_field',
),
'settings' => $settings,
),
'double_field_fieldset' => array(
'label' => t('Fieldset'),
'field types' => array(
'double_field',
),
'settings' => $settings + array(
'collapsible' => TRUE,
'collapsed' => FALSE,
),
),
);
}