1 field_example.module field_example_field_info()

Implements hook_field_info().

Provides the description of the field.

Related topics


modules/examples/field_example/field_example.module, line 61
An example field using the Field Types API.


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',