Returns information about the default search module.
The search_get_info() array element for the default search module, if any.
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);
}