function field_info_instances


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_instances($entity_type = NULL, $bundle_name = NULL)
cle7 field_info_instances($entity_type = NULL, $bundle_name = NULL)
elmsmedia7 field_info_instances($entity_type = NULL, $bundle_name = NULL)
icor7 field_info_instances($entity_type = NULL, $bundle_name = NULL)
meedjum_blog7 field_info_instances($entity_type = NULL, $bundle_name = NULL)
mooc7 field_info_instances($entity_type = NULL, $bundle_name = NULL)

Retrieves information about field instances.

Use of this function to retrieve instances across separate bundles (i.e. when the $bundle parameter is NULL) should be avoided when possible, since it loads and statically caches a potentially large array of information. Use field_info_field_map() instead.

When retrieving the instances of a specific bundle (i.e. when both $entity_type and $bundle_name are provided), the function also populates a static cache with the corresponding field definitions, allowing fast retrieval of field_info_field() later in the request.


$entity_type: (optional) The entity type for which to return instances.

$bundle_name: (optional) The bundle name for which to return instances. If $entity_type is NULL, the $bundle_name parameter is ignored.

Return value

If $entity_type is not set, return all instances keyed by entity type and bundle name. If $entity_type is set, return all instances for that entity type, keyed by bundle name. If $entity_type and $bundle_name are set, return all instances for that bundle.

See also


Related topics

118 calls to field_info_instances()
cis_shortcodes_entity_view in sites/all/modules/elmsln_contrib/cis_connector/modules/cis_shortcodes/cis_shortcodes.module
Implements hook_entity_view().
context_condition_node_taxonomy::execute in sites/all/modules/ulmus/context/plugins/
ctools_entity_field_content_type_content_types in sites/all/modules/ulmus/ctools/plugins/content_types/entity_context/
Return all field content types available.
ctools_entity_field_value_ctools_access_get_children in sites/all/modules/ulmus/ctools/plugins/access/
ctools_entity_field_value_ctools_access_settings in sites/all/modules/ulmus/ctools/plugins/access/
Settings form for the 'by entity_bundle' access plugin

... See full list


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


function field_info_instances($entity_type = NULL, $bundle_name = NULL) {
  $cache = _field_info_field_cache();

  if (!isset($entity_type)) {
    return $cache->getInstances();
  if (!isset($bundle_name)) {
    return $cache->getInstances($entity_type);

  return $cache->getBundleInstances($entity_type, $bundle_name);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.