field.attach.inc

Version 1.59 (checked in on 2009/11/08 at 19:11:56 by webchick)

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

Constants

NameDescription
FIELD_STORAGE_INSERTArgument for an insert operation.
FIELD_STORAGE_UPDATEArgument for an update operation.

Functions

NameDescription
field_attach_create_bundleNotify field.module that a new bundle was created.
field_attach_deleteDelete field data for an existing object. This deletes all revisions of field data for the object.
field_attach_delete_bundleNotify field.module the a bundle was deleted.
field_attach_delete_revisionDelete field data for a single revision of an existing object. The passed object must have a revision id attribute.
field_attach_extra_weightRetrieve the user-defined weight for a 'pseudo-field' component.
field_attach_formAdd form elements for all fields for an object to a form structure.
field_attach_form_validatePerform field validation against form-submitted field values.
field_attach_insertSave field data for a new object.
field_attach_loadLoad all fields for the most current version of each of a set of objects of a single object type.
field_attach_load_revisionLoad all fields for a previous version of each of a set of objects of a single object type.
field_attach_prepare_translationImplement hook_node_prepare_translation.
field_attach_prepare_viewAllow formatters to act on fieldable objects prior to rendering.
field_attach_preprocessPopulate the template variables with the field values available for rendering.
field_attach_presavePerform necessary operations just before fields data get saved.
field_attach_queryRetrieve objects matching a given set of conditions.
field_attach_query_revisionsRetrieve object revisions matching a given set of conditions.
field_attach_rename_bundleNotify field.module that a bundle was renamed.
field_attach_submitPerform necessary operations on field data submitted by a form.
field_attach_updateSave field data for an existing object.
field_attach_validatePerform field validation against the field data in an object.
field_attach_viewGenerate and return a structured content array tree suitable for drupal_render() for all of the fields on an object. The format of each field's rendered content depends on the display formatter and its settings.
_field_invokeInvoke a field hook.
_field_invoke_defaultInvoke field.module's version of a field hook.
_field_invoke_multipleInvoke a field hook across fields on multiple objects.
_field_invoke_multiple_defaultInvoke field.module's version of a field hook on multiple objects.
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.