field_example.module

Version 1.9 (checked in on 2010/10/14 at 20:18:42 by rfay)

An example field using the Field API.

This is updated from Barry Jaspan's presentation at Drupalcon Paris, Video Presentation

Providing a field requires:

* See Field Types API

Functions & methods

NameDescription
field_example_3text_validateValidate the individual fields and then convert them into a single HTML RGB value as text.
field_example_field_formatter_infoImplements hook_field_formatter_info().
field_example_field_formatter_viewImplements hook_field_formatter_view().
field_example_field_infoImplements hook_field_info().
field_example_field_is_emptyImplements hook_field_is_empty().
field_example_field_validateImplements hook_field_validate().
field_example_field_widget_errorImplements hook_field_widget_error().
field_example_field_widget_formImplements hook_field_widget_form().
field_example_field_widget_infoImplements hook_field_widget_info().
field_example_menuImplements hook_menu().
_field_example_pageA simple page to explain to the developer what to do.