Attach custom data fields to Drupal objects.
The Field API allows custom data fields to be attached to Drupal objects and takes care of storing, loading, editing, and rendering field data. Any object type (node, user, etc.) can use the Field API to make itself "fieldable" and thus allow fields to be attached to it. Other modules can provide a user interface for managing custom fields via a web browser as well as a wide and flexible variety of data type, form element, and display format capabilities.
| Name | Beschreibung |
|---|---|
| FieldException | Base class for all exceptions thrown by Field API functions. |
| Name | Beschreibung |
|---|---|
| field_access | Determine whether the user has access to a given field. |
| field_associate_fields | Allows a module to update the database for fields and columns it controls. |
| field_build_modes | Registry of available build modes. TODO : move into hook_fieldable_info() ? |
| field_cache_clear | Clear the cached information; called in several places when field information is changed. |
| field_filter_xss | Like filter_xss_admin(), but with a shorter list of allowed tags. |
| field_flush_caches | Implementation of hook_flush_caches. |
| field_format | Format a field item for display. |
| field_help | Implementation of hook_help(). |
| field_init | Implementation of hook_init(). |
| field_menu | Implementation of hook_menu(). |
| field_modules_disabled | Implementation of hook_modules_disabled(). |
| field_modules_enabled | Implementation of hook_modules_enabled(). |
| field_modules_installed | Implementation of hook_modules_installed(). |
| field_modules_uninstalled | Implementation of hook_modules_uninstalled(). |
| field_set_empty | Helper function to filter out empty values. |
| field_theme | Implementation of hook_theme(). |
| field_view_field | Return a single field, fully themed with label and multiple values. |
| template_preprocess_field | Theme preprocess function for field.tpl.php. |
| _field_filter_xss_allowed_tags | List of tags allowed by field_filter_xss(). |
| _field_filter_xss_display_allowed_tags | Human-readable list of allowed tags, for display in help texts. |
| _field_sort_items | Helper function to sort items in a field according to user drag-n-drop reordering. |
| _field_sort_items_helper | Sort function for items order. (copied form element_sort(), which acts on #weight keys) |
| _field_sort_items_value_helper | Same as above, using ['_weight']['#value'] |
| Name | Beschreibung |
|---|---|
| FIELD_BEHAVIOR_CUSTOM | TODO |
| FIELD_BEHAVIOR_DEFAULT | TODO |
| FIELD_BEHAVIOR_NONE | TODO |
| FIELD_CARDINALITY_UNLIMITED | Value for $field['cardinality'] property to indicate it can hold an unlimited number of values. |
| FIELD_LOAD_CURRENT | Age argument for loading the most recent version of an object's field data with field_attach_load(). |
| FIELD_LOAD_REVISION | Age argument for loading the version of an object's field data specified in the object with field_attach_load(). |
modules/
Kommentare
Kommentar hinzufügen