Define field types, widget types, and display formatter types.
The bulk of the Field Types API are related to field types. A field type represents a particular data storage type (integer, string, date, etc.) that can be attached to a fieldable object. hook_field_info() defines the basic properties of a field type, and a variety of other field hooks are called by the Field Attach API to perform field-type-specific actions.
The Field Types API also defines widget types via hook_field_widget_info(). Widgets are Form API elements with additional processing capabilities. A field module can define widgets that work with its own field types or with any other module's field types. Widget hooks are typically called by the Field Attach API when creating the field form elements during field_attach_form().
TODO Display formatters.
| Name | Beschreibung |
|---|---|
| hook_field_delete | Define custom delete behavior for this module's field types. |
| hook_field_delete_revision | Define custom delete_revision behavior for this module's field types. |
| hook_field_formatter_info | |
| hook_field_info | Define Field API field types. |
| hook_field_insert | Define custom insert behavior for this module's field types. |
| hook_field_load | Define custom load behavior for this module's field types. |
| hook_field_prepare_translation | Define custom prepare_translation behavior for this module's field types. |
| hook_field_presave | Define custom presave behavior for this module's field types. |
| hook_field_sanitize | Define custom sanitize behavior for this module's field types. |
| hook_field_schema | Define the Field API schema for a field structure. |
| hook_field_update | Define custom update behavior for this module's field types. |
| hook_field_validate | Define custom validate behavior for this module's field types. |
| hook_field_widget | Return a single form element for a form. |
| hook_field_widget_error | Flag a field-level validation error. |
| hook_field_widget_info | Define Field API widget types. |
modules/
Kommentare
Kommentar hinzufügen