Same name and namespace in other branches
- 7.x-2.x color_field.field.inc \color_field_field_info()
Implements hook_field_info().
File
-
./
color_field.module, line 59
Code
function color_field_field_info() {
return array(
'color_field_rgb' => array(
'label' => t('Color Field'),
'description' => t('Field using a hexadecimal notation.'),
'default_widget' => 'color_field_default_widget',
'default_formatter' => 'color_field_default_formatter',
// Support hook_entity_property_info() from contrib "Entity API".
'property_type' => 'color_field',
'property_callbacks' => array(
'color_field_property_info_callback',
),
),
);
}