Examples using Field Types API.
This is updated from Barry Jaspan's presentation at Backdropcon Paris, Video Presentation
Providing a field requires:
- Defining a formatter for the field (the portion that outputs the field for display):
And finally, our module defines the widget in field_example_field_widget_info() and field_example_field_widget_form(). The widget is the form element used to receive input from the user when the field is being populated.
examples/ field_example/ field_example.module, line 7
- An example field using the Field Types API.