function field_info_field

cis7 field.info.inc field_info_field($field_name)
cle7 field.info.inc field_info_field($field_name)
elmsmedia7 field.info.inc field_info_field($field_name)
icor7 field.info.inc field_info_field($field_name)
meedjum_blog7 field.info.inc field_info_field($field_name)
mooc7 field.info.inc field_info_field($field_name)

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

Parameters

$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

field_info_field_by_id()

Related topics

170 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/entity_field.inc
Returns an edit form for custom type settings.

... See full list

File

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

Code

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