1 search.module search_get_default_module_info()

Returns information about the default search module.

Return value

The search_get_info() array element for the default search module, if any.:


core/modules/search/search.module, line 340
Enables site-wide keyword searching.


function search_get_default_module_info() {
  $info = search_get_info();
  $default = config_get('search.settings', 'search_default_module');
  if (isset($info[$default])) {
    return $info[$default];
  // The variable setting does not match any active module, so just return
  // the info for the first active module (if any).
  return reset($info);