function field_info_field


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 field_info_field($field_name)
cle7 field_info_field($field_name)
elmsmedia7 field_info_field($field_name)
icor7 field_info_field($field_name)
meedjum_blog7 field_info_field($field_name)
mooc7 field_info_field($field_name)

Returns data about an individual field, given a field name.


$field_name: The name of the field to retrieve. $field_name can only refer to a non-deleted, active field. For deleted fields, use field_info_field_by_id(). To retrieve information about inactive fields, use field_read_fields().

Return value

The field array, as returned by field_read_fields(), with an additional element 'bundles', whose value is an array of all the bundles this field belongs to keyed by entity type. NULL if the field was not found.

See also


Related topics

173 calls to field_info_field()
accessibility_install in sites/all/modules/ulmus/accessibility/accessibility.install
Implements hook_install().
better_formats_form_field_ui_edit_form_submit in sites/all/modules/ulmus/better_formats/better_formats.module
Submit handler for field instance edit form.
comment_submit in modules/comment/comment.module
Prepare a comment for submission.
ctools_ctools_entity_context_alter in sites/all/modules/ulmus/ctools/ctools.module
Implements hook_ctools_entity_context_alter().
ctools_entity_field_content_type_formatter_options in sites/all/modules/ulmus/ctools/plugins/content_types/entity_context/
Returns an edit form for custom type settings.

... See full list


modules/field/, line 518
Field Info API, providing information about available fields and field types.


function field_info_field($field_name) {
  $cache = _field_info_field_cache();
  return $cache->getField($field_name);