You are here

function entity_field_extra_fields in Entity API 7

Implements hook_field_extra_fields().

File

./entity.module, line 1357

Code

function entity_field_extra_fields() {

  // Invoke specified controllers for entity types provided by the CRUD API.
  $items = array();
  foreach (entity_crud_get_info() as $type => $info) {
    if (!empty($info['extra fields controller class'])) {
      $items = array_merge_recursive($items, entity_get_extra_fields_controller($type)
        ->fieldExtraFields());
    }
  }
  return $items;
}