Field Storage API

  1. drupal
    1. drupal7

Implement a storage engine for Field API data.

The Field Attach API uses the Field Storage API to perform all "database access". Each Field Storage API hook function defines a primitive database operation such as read, write, or delete. The default field storage module, field_sql_storage.module, uses the local SQL database to implement these operations, but alternative field storage engines can choose to represent the data in SQL differently or use a completely different storage mechanism such as a cloud-based database.

The Drupal system variable field_storage_module identifies the field storage module to use.

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
hook_field_storage_create_bundleAct on creation of a new bundle.
hook_field_storage_create_fieldAct on creation of a new field.
hook_field_storage_deleteDelete all field data for an object.
hook_field_storage_delete_fieldAct on deletion of a field.
hook_field_storage_delete_instanceAct on deletion of a field instance.
hook_field_storage_delete_revisionDelete a single revision of field data for an object.
hook_field_storage_loadLoad field data for a set of objects.
hook_field_storage_rename_bundleAct on a bundle being renamed.
hook_field_storage_writeWrite field data for an object.

modules/field/field.attach.inc, line 40

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