field.attach.inc

  1. drupal
    1. drupal7

Version 1.17 (checked in on 2009/05/17 at 03:12:17 by webchick)

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

Klassen

NameBeschreibung
FieldValidationExceptionException class thrown by field_attach_validate() when field validation errors occur.

Konstanten

NameBeschreibung
FIELD_STORAGE_INSERTArgument for an update operation. This is used in hook_field_storage_write when inserting a new object.
FIELD_STORAGE_UPDATEArgument for an insert operation. This is used in hook_field_storage_write when updating an existing object.

Funktionen & Methoden

NameBeschreibung
_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_extract_idsHelper function to extract id, vid, and bundle name from an object.
_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_translationImplementation of hook_node_prepare_translation.
_field_attach_preprocessTo be called in entity preprocessor.
_field_attach_presavePerform necessary operations just before fields data get saved.
_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 operation across fields on multiple objects.
_field_invoke_multiple_defaultInvoke field.module's version of a field hook on multiple objects.

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen