search_get_default_module_info
function search_get_default_module_info
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.
File
- modules/search/search.module, line 281
- Enables site-wide keyword searching.
Code
function search_get_default_module_info() { $info = search_get_info(); $default = variable_get('search_default_module', 'node'); 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.module/function/search_get_default_module_info/7.x