field.module
Version 1.47 (checked in on 2009/10/31 at 18:00:48 by dries)
Attach custom data fields to Drupal objects.
Constants
| Name | Description |
|---|---|
| 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_LANGUAGE_NONE | The language code assigned to untranslatable fields. |
| 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(). |
| FIELD_QUERY_COMPLETE | Cursor return value for field_attach_query() to indicate that no more data is available. |
| FIELD_QUERY_NO_LIMIT | Limit argument for field_attach_query() to request all available objects instead of a limited number. |
Functions
| Name | Description |
|---|---|
| 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. |
| field_cache_clear | Clear the field info and field date caches. |
| field_cron | Implement hook_cron(). |
| field_extract_bundle | Helper function to extract the bundle name of from a bundle object. |
| field_extra_fields | Registry of pseudo-field components in a given bundle. |
| field_filter_xss | Like filter_xss_admin(), but with a shorter list of allowed tags. |
| field_flush_caches | Implement hook_flush_caches. |
| field_format | Format a field item for display. |
| field_get_default_value | Helper function to get the default value for a field on an object. |
| field_has_data | Determine whether a field has any data. |
| field_help | Implement hook_help(). |
| field_modules_disabled | Implement hook_modules_disabled(). |
| field_modules_enabled | Implement hook_modules_enabled(). |
| field_modules_installed | Implement hook_modules_installed(). |
| field_modules_uninstalled | Implement hook_modules_uninstalled(). |
| field_set_empty | Helper function to filter out empty values. |
| field_theme | Implement 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. |
| template_process_field | Theme process function for field.tpl.php. |
| _field_extra_weights_pre_render | Pre-render callback to adjust weights of non-field elements on objects. |
| _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'] |
