1 field_example.module | field_example_field_info() |
Implements hook_field_info().
Provides the description of the field.
Related topics
File
- modules/
examples/ field_example/ field_example.module, line 57 - Hook implementations for the Field Example module.
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',
),
);
}