function field_info_field_by_id

×

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/api.elmsln.org/includes/bootstrap.inc).
cis7 field.info.inc field_info_field_by_id($field_id)
cle7 field.info.inc field_info_field_by_id($field_id)
elmsmedia7 field.info.inc field_info_field_by_id($field_id)
icor7 field.info.inc field_info_field_by_id($field_id)
meedjum_blog7 field.info.inc field_info_field_by_id($field_id)
mooc7 field.info.inc field_info_field_by_id($field_id)

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

Parameters

$field_id: The id of the field to retrieve. $field_id can refer to a deleted field, but not an inactive one.

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.

See also

field_info_field()

Related topics

27 calls to field_info_field_by_id()
ctools_entity_field_value_ctools_access_check in sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc
Check for access.
ctools_entity_field_value_ctools_access_settings in sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc
Settings form for the 'by entity_bundle' access plugin
ctools_entity_field_value_ctools_access_settings_submit in sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc
Compress the entity bundles allowed to the minimum.
ctools_entity_field_value_ctools_access_summary in sites/all/modules/ulmus/ctools/plugins/access/entity_field_value.inc
Provide a summary description based upon the checked entity_bundle.
field_attach_delete in modules/field/field.attach.inc
Delete field data for an existing entity. This deletes all revisions of field data for the entity.

... See full list

File

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

Code

function field_info_field_by_id($field_id) {
  $cache = _field_info_field_cache();
  return $cache->getFieldById($field_id);
}