field_read_field

  1. drupal
    1. drupal7
Versionen
drupal7 field_read_field($field_name, $include_additional = array())

Read a single field record directly from the database. Generally, you should use the field_info_field() instead.

Übergabeparameter

$field_name The field name to read.

array $include_additional The default behavior of this function is to not return a field that is inactive or has been deleted. Setting $include_additional['include_inactive'] or $include_additional['include_deleted'] to TRUE will override this behavior.

Rückgabewert

A field structure, or FALSE.

Verwandte Themen

▾ 7 functions call field_read_field()

FieldTestCase::testCreateField in modules/field/field.test
Test the creation of a field.
FieldTestCase::testDeleteField in modules/field/field.test
Test the deletion of a field.
FieldTestCase::testFieldIndexes in modules/field/field.test
Test creation of indexes on data column.
field_create_field in modules/field/field.crud.inc
Create a field.
field_create_instance in modules/field/field.crud.inc
Creates an instance of a field, binding it to a bundle.
field_update_instance in modules/field/field.crud.inc
_field_write_instance in modules/field/field.crud.inc
Store an instance record in the field configuration database.

Code

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

<?php
function field_read_field($field_name, $include_additional = array()) {
  $fields = field_read_fields(array('field_name' => $field_name), $include_additional);
  return $fields ? current($fields) : FALSE;
}
?>

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