You are here

function search_api_search_api_item_type_info in Search API 7

Implements hook_search_api_item_type_info().

Adds item types for all entity types with property information.

File

./search_api.module, line 1033
Provides a flexible framework for implementing search services.

Code

function search_api_search_api_item_type_info() {
  $types = array();
  foreach (search_api_entity_type_options_list() as $type => $label) {
    $types[$type] = array(
      'name' => $label,
      'datasource controller' => 'SearchApiEntityDataSourceController',
      'entity_type' => $type,
    );
  }
  $types['multiple'] = array(
    'name' => t('Multiple types'),
    'datasource controller' => 'SearchApiCombinedEntityDataSourceController',
  );
  return $types;
}