You are here

function search_api_grouping_search_api_item_type_info in Search API Grouping 7.2

Implements hook_search_api_item_type_info().

File

./search_api_grouping.module, line 15
Module search_api_grouping.

Code

function search_api_grouping_search_api_item_type_info() {
  $types = array();
  foreach (entity_get_info() as $entity_type => $entity_info) {
    if (!empty($entity_info['fieldable'])) {
      $types[search_api_grouping_get_type($entity_type)] = array(
        'name' => t('Denormalized @entity', array(
          '@entity' => $entity_info['label'],
        )),
        'datasource controller' => 'SearchApiDenormalizedEntityDataSourceController',
        'entity_type' => $entity_type,
      );
    }
  }
  return $types;
}