function _field_info_prepare_extra_fields

_field_info_prepare_extra_fields($extra_fields, $entity_type, $bundle)

Prepares 'extra fields' for the current run-time context.

The functionality has moved to the FieldInfo class. This function is kept as a backwards-compatibility layer. See http://drupal.org/node/1915646.

See also

FieldInfo::prepareExtraFields()

Related topics

File

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

Code

function _field_info_prepare_extra_fields($extra_fields, $entity_type, $bundle) {
  $cache = _field_info_field_cache();
  return $cache->prepareExtraFields($extra_fields, $entity_type, $bundle);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.info.inc/function/_field_info_prepare_extra_fields/7.x