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

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_LANGUAGE_NONEThe language code assigned to untranslatable fields.
FIELD_LOAD_CURRENTAge argument for loading the most recent version of an object's field data with field_attach_load().
FIELD_LOAD_REVISIONAge argument for loading the version of an object's field data specified in the object 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 objects 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_build_modesRegistry of available build modes.
field_cache_clearClear the field info and field date caches.
field_cronImplement 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_filter_xssLike filter_xss_admin(), but with a shorter list of allowed tags.
field_flush_cachesImplement hook_flush_caches.
field_formatFormat a field item for display.
field_get_default_valueHelper function to get the default value for a field on an object.
field_has_dataDetermine whether a field has any data.
field_helpImplement hook_help().
field_modules_disabledImplement hook_modules_disabled().
field_modules_enabledImplement hook_modules_enabled().
field_modules_installedImplement hook_modules_installed().
field_modules_uninstalledImplement hook_modules_uninstalled().
field_set_emptyHelper function to filter out empty values.
field_themeImplement hook_theme().
field_view_fieldReturn a single field, fully themed with label and multiple values.
template_preprocess_fieldTheme preprocess function for field.tpl.php.
template_process_fieldTheme process function for field.tpl.php.
_field_extra_weights_pre_renderPre-render callback to adjust weights of non-field elements on objects.
_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']
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.