Create, update, and delete Field API fields, bundles, and instances.
Modules use this API, often in hook_install(), to create custom data structures. UI modules will use it to create a user interface.
The Field CRUD API uses Field API data structures.
| Name | Beschreibung |
|---|---|
| field_create_field | Create a field. |
| field_create_instance | Creates an instance of a field, binding it to a bundle. |
| field_delete_field | Mark a field for deletion, including all its instances and all data associated with it. |
| field_delete_instance | Mark a field instance for deletion, including all data associated with it. |
| field_read_field | Read a single field record directly from the database. Generally, you should use the field_info_field() instead. |
| field_read_fields | Read in fields that match an array of conditions. |
| field_read_instance | Read a single instance record directly from the database. Generally, you should use the field_info_instance() instead. |
| field_read_instances | Read in field instances that match an array of conditions. |
| field_update_instance | |
| hook_field_create_field | Act on a field being created. |
| hook_field_create_instance | Act on a field instance being created. |
| hook_field_delete_field | Act on a field being deleted. |
| hook_field_delete_instance | Act on a field instance being deleted. |
| hook_field_read_field | Act on field records being read from the database. |
| hook_field_read_instance | Act on a field record being read from the database. |
| hook_field_update_instance | Act on a field instance being updated. |
| _field_write_instance | Store an instance record in the field configuration database. |
modules/
Kommentare
Kommentar hinzufügen