You are here

function fac_fac_service_info in Fast Autocomplete 7

Implements hook_fac_service_info().

File

./fac.module, line 450
This file contains the main functions of the Fast Autocomplete module.

Code

function fac_fac_service_info() {
  $services['fac_basic_title_search_service'] = array(
    'name' => t('Basic title search service'),
    'class' => 'Drupal\\fac\\SearchService\\BasicTitleSearchService',
  );
  if (module_exists('search')) {
    $services['fac_core_search_service'] = array(
      'name' => t('Core search service'),
      'class' => 'Drupal\\fac\\SearchService\\CoreSearchService',
    );
  }
  if (module_exists('search_api')) {
    $services['fac_search_api_search_service'] = array(
      'name' => t('Search API search service'),
      'class' => 'Drupal\\fac\\SearchService\\SearchApiSearchService',
    );
  }
  if (module_exists('apachesolr')) {
    $services['fac_apachesolr_search_service'] = array(
      'name' => t('Apachesolr search service'),
      'class' => 'Drupal\\fac\\SearchService\\ApachesolrSearchService',
    );
  }
  return $services;
}