| Versionen | |
|---|---|
| drupal7 | field_info_field($field_name) |
Return data about an individual field.
$field_name The name of the field to retrieve.
The named field object, or NULL. The Field object has an additional property, bundles, which is an array of all the bundles to which this field belongs.
This function is an autoloader for _field_info_field() in modules/field/field.info.inc.
modules/
<?php
function field_info_field($field_name) {
require_once DRUPAL_ROOT . '/modules/field/field.info.inc';
return _field_info_field($field_name);
}
?>
Kommentare
Kommentar hinzufügen