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.
| Name | Beschreibung |
|---|---|
| FIELD_STORAGE_INSERT | Argument for an update operation. This is used in hook_field_storage_write when inserting a new object. |
| FIELD_STORAGE_UPDATE | Argument for an insert operation. This is used in hook_field_storage_write when updating an existing object. |
| Name | Beschreibung |
|---|---|
| hook_field_storage_create_bundle | Act on creation of a new bundle. |
| hook_field_storage_create_field | Act on creation of a new field. |
| hook_field_storage_delete | Delete all field data for an object. |
| 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 object. |
| hook_field_storage_load | Load field data for a set of objects. |
| hook_field_storage_rename_bundle | Act on a bundle being renamed. |
| hook_field_storage_write | Write field data for an object. |
modules/
Kommentare
Kommentar hinzufügen