Field Info API

  1. drupal
    1. drupal7

Obtain information about Field API configuration.

The Field Info API exposes information about field types, fields, instances, bundles, widget types, display formatters, behaviors, and settings defined by or with the Field API.

Funktionen & Methoden

NameBeschreibung
field_behaviors_fieldHelper function for determining the behavior of a field with respect to a given operation.
field_behaviors_formatterHelper function for determining the behavior of a formatter with respect to a given operation.
field_behaviors_widgetHelper function for determining the behavior of a widget with respect to a given operation.
field_info_bundlesReturn an array of fieldable bundle names and labels, for an individual object type or for all object types.
field_info_bundle_entityIdentity the type of entity that created a bundle. // TODO : might not be needed depending on how we solve // the 'namespace bundle names' issue
field_info_fieldReturn data about an individual field.
field_info_fieldable_typesReturn hook_fieldable_info() data.
field_info_fieldsReturn array of all field data, keyed by field name.
field_info_field_settingsReturn a field type's default settings.
field_info_field_typesReturn hook_field_info() data.
field_info_formatter_settingsReturn a field formatter's default settings.
field_info_formatter_typesReturn hook_field_formatter_info() data.
field_info_instanceReturn an array of instance data for a specific field and bundle.
field_info_instancesReturn an array of instance data for a given bundle, or for all known bundles, keyed by bundle name and field name.
field_info_instance_settingsReturn a field type's default instance settings.
field_info_widget_settingsReturn a field widget's default settings.
field_info_widget_typesReturn hook_field_widget_info() data.
_field_get_formatterReturn valid formatter type and settings.
_field_info_collate_fieldsCollate all information on existing fields and instances.
_field_info_collate_typesCollate all information on field types, widget types and related structures.

modules/field/field.info.inc, line 9

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