Hooks provided by the Field module.

File

core/modules/field/field.api.php

Functions

Namesort descending Description
hook_field_access Determine whether the user has access to a given field.
hook_field_attach_create_bundle Act on field_attach_create_bundle().
hook_field_attach_delete Act on field_attach_delete().
hook_field_attach_delete_bundle Act on field_attach_delete_bundle.
hook_field_attach_delete_revision Act on field_attach_delete_revision().
hook_field_attach_form Act on field_attach_form().
hook_field_attach_insert Act on field_attach_insert().
hook_field_attach_load Act on field_attach_load().
hook_field_attach_prepare_translation_alter Perform alterations on field_attach_prepare_translation().
hook_field_attach_preprocess_alter Alter field_attach_preprocess() variables.
hook_field_attach_presave Act on field_attach_presave().
hook_field_attach_purge Act on field_purge_data().
hook_field_attach_rename_bundle Act on field_attach_rename_bundle().
hook_field_attach_submit Act on field_attach_submit().
hook_field_attach_update Act on field_attach_update().
hook_field_attach_validate Act on field_attach_validate().
hook_field_attach_view_alter Perform alterations on field_attach_view() or field_view_field().
hook_field_available_languages_alter Alter field_available_languages() values.
hook_field_create_field Act on a field being created.
hook_field_create_instance Act on a field instance being created.
hook_field_delete Define custom delete behavior for this module's field data.
hook_field_delete_field Act on a field being deleted.
hook_field_delete_instance Act on a field instance being deleted.
hook_field_delete_revision Define custom revision delete behavior for this module's field types.
hook_field_display_alter Alters the display settings of a field before it gets displayed.
hook_field_display_ENTITY_TYPE_alter Alters the display settings of a field on a given entity type before it gets displayed.
hook_field_extra_fields Exposes "pseudo-field" components on fieldable entities.
hook_field_extra_fields_alter Alter "pseudo-field" components on fieldable entities.
hook_field_extra_fields_display_alter Alters the display settings of pseudo-fields before an entity is displayed.
hook_field_formatter_info Expose Field API formatter types.
hook_field_formatter_info_alter Perform alterations on Field API formatter types.
hook_field_formatter_prepare_view Allow formatters to load information for field values being displayed.
hook_field_formatter_settings_form_alter Alter the form elements for a formatter's settings.
hook_field_formatter_settings_summary_alter Alter the short summary for the current formatter settings of an instance.
hook_field_formatter_view Build a renderable array for a field value.
hook_field_info Define Field API field types.
hook_field_info_alter Perform alterations on Field API field types.
hook_field_info_max_weight Returns the maximum weight for the entity components handled by the module.
hook_field_insert Define custom insert behavior for this module's field data.
hook_field_is_empty Define what constitutes an empty item for a field type.
hook_field_language_alter Perform alterations on field_language() values.
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_prepare_view Prepare field values prior to display.
hook_field_presave Define custom presave behavior for this module's field types.
hook_field_purge_field Acts when a field record is being purged.
hook_field_purge_instance Acts when a field instance is being purged.
hook_field_read_field Act on field records being read from the database.
hook_field_read_instance Act on a field record being read from the database.
hook_field_schema Define the Field API schema for a field structure.
hook_field_schema_alter Allow modules to alter the schema for a field.
hook_field_storage_create_field Act on creation of a new field.
hook_field_storage_delete Delete all field data for an entity.
hook_field_storage_delete_field Act on deletion of a field.
hook_field_storage_delete_instance Act on deletion of a field instance.
hook_field_storage_delete_revision Delete a single revision of field data for an entity.
hook_field_storage_details Reveal the internal details about the storage for a field.
hook_field_storage_details_alter Perform alterations on Field API storage details.
hook_field_storage_info Expose Field API storage backends.
hook_field_storage_info_alter Perform alterations on Field API storage types.
hook_field_storage_load Load field data for a set of entities.
hook_field_storage_pre_insert Act before the storage backends insert field data.
hook_field_storage_pre_load Act before the storage backends load field data.
hook_field_storage_pre_update Act before the storage backends update field data.
hook_field_storage_purge Remove field storage information when field data is purged.
hook_field_storage_purge_field Remove field storage information when a field record is purged.
hook_field_storage_purge_field_instance Remove field storage information when a field instance is purged.
hook_field_storage_query Execute an EntityFieldQuery.
hook_field_storage_update_field Update the storage information for a field.
hook_field_storage_write Write field data for an entity.
hook_field_update Define custom update behavior for this module's field data.
hook_field_update_field Act on a field being updated.
hook_field_update_forbid Forbid a field update from occurring.
hook_field_update_instance Act on a field instance being updated.
hook_field_validate Validate this module's field data.
hook_field_widget_error Flag a field-level validation error.
hook_field_widget_form Return the form for a single field widget.
hook_field_widget_form_alter Alter forms for field widgets provided by other modules.
hook_field_widget_info Expose Field API widget types.
hook_field_widget_info_alter Perform alterations on Field API widget types.
hook_field_widget_properties_alter Alters the widget properties of a field instance before it gets displayed.
hook_field_widget_properties_ENTITY_TYPE_alter Alters the widget properties of a field instance on a given entity type before it gets displayed.
hook_field_widget_WIDGET_TYPE_form_alter Alter widget forms for a specific widget provided by another module.