Same name and namespace in other branches
- 7.x-1.x color_field.module \color_field_field_formatter_info() 1 comment
Implements hook_field_formatter_info().
See also
color_field_field_formatter_view()
File
-
./
color_field.field.inc, line 431
Code
function color_field_field_formatter_info() {
return array(
'color_field_default_formatter' => array(
'label' => t('Plain text color'),
'field types' => array(
'color_field_rgb',
),
),
'color_field_css_declaration' => array(
'label' => t('CSS Declaration'),
'field types' => array(
'color_field_rgb',
),
'settings' => array(
'selector' => 'body',
'property' => 'background-color',
'important' => TRUE,
'opacity_disabled' => FALSE,
),
),
'color_field_swatch' => array(
'label' => t('Color Swatch'),
'field types' => array(
'color_field_rgb',
),
'settings' => array(
'width' => '50',
'height' => '50',
),
),
);
}