field.module

Version 1.68 (checked in on 2010/03/12 at 19:51:40 by dries)

Attach custom data fields to Drupal entities.

Constants

NameDescription
FIELD_BEHAVIOR_CUSTOMTODO
FIELD_BEHAVIOR_DEFAULTTODO
FIELD_BEHAVIOR_NONETODO
FIELD_CARDINALITY_UNLIMITEDValue for $field['cardinality'] property to indicate it can hold an unlimited number of values.
FIELD_LOAD_CURRENTAge argument for loading the most recent version of an entity's field data with field_attach_load().
FIELD_LOAD_REVISIONAge argument for loading the version of an entity's field data specified in the entity with field_attach_load().
FIELD_QUERY_COMPLETECursor return value for field_attach_query() to indicate that no more data is available.
FIELD_QUERY_NO_LIMITLimit argument for field_attach_query() to request all available entities instead of a limited number.

Functions

NameDescription
field_accessDetermine whether the user has access to a given field.
field_associate_fieldsAllows a module to update the database for fields and columns it controls.
field_cache_clearClear the field info and field data caches.
field_cronImplements hook_cron().
field_extract_bundleHelper function to extract the bundle name of from a bundle object.
field_extra_fieldsRegistry of pseudo-field components in a given bundle.
field_extra_field_weightRetrieve the user-defined weight for a 'pseudo-field' component.
field_filter_xssLike filter_xss_admin(), but with a shorter list of allowed tags.
field_flush_cachesImplements hook_flush_caches().
field_get_default_valueHelper function to get the default value for a field on an entity.
field_has_dataDetermine whether a field has any data.
field_helpImplements hook_help().
field_modules_disabledImplements hook_modules_disabled().
field_modules_enabledImplements hook_modules_enabled().
field_modules_installedImplements hook_modules_installed().
field_modules_uninstalledImplements hook_modules_uninstalled().
field_themeImplements hook_theme().
field_view_fieldReturns a renderable array for the value of a single field in an entity.
field_view_valueReturns a renderable array for a single field value.
template_preprocess_fieldTheme preprocess function for theme_field() and field.tpl.php.
template_process_fieldTheme process function for theme_field() and field.tpl.php.
theme_fieldReturns a themed field.
_field_extra_weights_pre_renderPre-render callback to adjust weights of non-field elements on entities.
_field_filter_itemsHelper function to filter out empty field values.
_field_filter_xss_allowed_tagsList of tags allowed by field_filter_xss().
_field_filter_xss_display_allowed_tagsHuman-readable list of allowed tags, for display in help texts.
_field_sort_itemsHelper function to sort items in a field according to user drag-n-drop reordering.
_field_sort_items_helperSort function for items order. (copied form element_sort(), which acts on #weight keys)
_field_sort_items_value_helperSame as above, using ['_weight']['#value']