function 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.

4 calls to search_get_default_module_info()
search_box_form_submit in drupal/core/modules/search/search.module
Form submission handler for search_box().
search_form in drupal/core/modules/search/search.module
Form constructor for the search form.
search_menu in drupal/core/modules/search/search.module
Implements hook_menu().
search_view in drupal/core/modules/search/search.pages.inc
Page callback: Presents the search form and/or search results.

File

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

Code

function search_get_default_module_info() {
  $info = search_get_info();
  $default = config('search.settings')
    ->get('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);
}