Field CRUD API

  1. drupal
    1. drupal7

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.

Funktionen & Methoden

NameBeschreibung
field_create_fieldCreate a field.
field_create_instanceCreates an instance of a field, binding it to a bundle.
field_delete_fieldMark a field for deletion, including all its instances and all data associated with it.
field_delete_instanceMark a field instance for deletion, including all data associated with it.
field_read_fieldRead a single field record directly from the database. Generally, you should use the field_info_field() instead.
field_read_fieldsRead in fields that match an array of conditions.
field_read_instanceRead a single instance record directly from the database. Generally, you should use the field_info_instance() instead.
field_read_instancesRead in field instances that match an array of conditions.
field_update_instance
hook_field_create_fieldAct on a field being created.
hook_field_create_instanceAct on a field instance being created.
hook_field_delete_fieldAct on a field being deleted.
hook_field_delete_instanceAct on a field instance being deleted.
hook_field_read_fieldAct on field records being read from the database.
hook_field_read_instanceAct on a field record being read from the database.
hook_field_update_instanceAct on a field instance being updated.
_field_write_instanceStore an instance record in the field configuration database.

modules/field/field.crud.inc, line 168

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