function field_example_field_info
Implements hook_field_info().
Provides the description of the field.
Related topics
File
-
field_example/
field_example.module, line 55
Code
function field_example_field_info() {
return array(
// We name our field as the associative name of the array.
'field_example_rgb' => array(
'label' => t('Example Color RGB'),
'description' => t('Demonstrates a field composed of an RGB color.'),
'default_widget' => 'field_example_3text',
'default_formatter' => 'field_example_simple_text',
),
);
}