Field attach API, allowing entities (nodes, users, ...) to be 'fieldable'.

File

core/modules/field/field.attach.inc

Functions

Namesort descending Description
field_attach_create_bundle Notify field.module that a new bundle was created.
field_attach_delete Delete field data for an existing entity. This deletes all revisions of field data for the entity.
field_attach_delete_bundle Notify field.module that a bundle was deleted.
field_attach_delete_revision Delete field data for a single revision of an existing entity. The passed entity must have a revision id attribute.
field_attach_form Add form elements for all fields for an entity to a form structure.
field_attach_form_validate Perform field validation against form-submitted field values.
field_attach_insert Save field data for a new entity.
field_attach_load Loads fields for the current revisions of a group of entities.
field_attach_load_revision Load all fields for previous versions of a group of entities.
field_attach_prepare_translation Prepares an entity for translation.
field_attach_prepare_view Prepare field data prior to display.
field_attach_preprocess Populate the template variables with the field values available for rendering.
field_attach_presave Perform necessary operations just before fields data get saved.
field_attach_rename_bundle Notify field.module that a bundle was renamed.
field_attach_submit Perform necessary operations on field data submitted by a form.
field_attach_update Save field data for an existing entity.
field_attach_validate Perform field validation against the field data in an entity.
field_attach_view Returns a renderable array for the fields on an entity.
_field_invoke Invoke a field hook.
_field_invoke_default Invoke field.module's version of a field hook.
_field_invoke_get_instances Helper for _field_invoke(): retrieves a list of instances to operate on.
_field_invoke_multiple Invoke a field hook across fields on multiple entities.
_field_invoke_multiple_default Invoke field.module's version of a field hook on multiple entities.

Constants

Namesort descending Description
FIELD_STORAGE_INSERT Argument for an insert operation.
FIELD_STORAGE_UPDATE Argument for an update operation.