You are here

function search_api_module_implements_alter in Search API 7

Implements hook_module_implements_alter().

Ensures the item type and service class static caches are invalidated at the right time.

File

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

Code

function search_api_module_implements_alter(array &$implementations, $hook) {
  switch ($hook) {
    case 'modules_enabled':
      $group = $implementations['search_api'];
      unset($implementations['search_api']);
      $implementations = array(
        'search_api' => $group,
      ) + $implementations;
      break;
    case 'modules_disabled':
      $group = $implementations['search_api'];
      unset($implementations['search_api']);
      $implementations['search_api'] = $group;
      break;
  }
}