Invokes hook_search_preprocess() in modules.
function search_invoke_preprocess(&$text) { foreach (module_implements('search_preprocess') as $module) { $text = module_invoke($module, 'search_preprocess', $text); } }