function field_info_field_map

×

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_map()
cle7 field.info.inc field_info_field_map()
elmsmedia7 field.info.inc field_info_field_map()
icor7 field.info.inc field_info_field_map()
meedjum_blog7 field.info.inc field_info_field_map()
mooc7 field.info.inc field_info_field_map()

Returns a lightweight map of fields across bundles.

The function only returns active, non deleted fields.

array(
  'body' => array(
    'bundles' => array(
      'node' => array('page', 'article'),
    ),
    'type' => 'text_with_summary',
  ),
);

Return value

An array keyed by field name. Each value is an array with two entries:

  • type: The field type.
  • bundles: The bundles in which the field appears, as an array with entity types as keys and the array of bundle names as values.

Example:

Related topics

1 call to field_info_field_map()
_file_entity_get_fields_by_type in sites/all/modules/ulmus/file_entity/file_entity.module
Find all fields that are of a certain field type.
1 string reference to 'field_info_field_map'
_file_entity_get_fields_by_type in sites/all/modules/ulmus/file_entity/file_entity.module
Find all fields that are of a certain field type.

File

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

Code

function field_info_field_map() {
  $cache = _field_info_field_cache();
  return $cache->getFieldMap();
}