function search_data
Same name and namespace in other branches
- 7.x drupal-7.x/modules/search/search.module \search_data()
Perform a standard search on the given keys, and return the formatted results.
Related topics
1 call to search_data()
- search_view in drupal-6.x/
modules/ search/ search.pages.inc - Menu callback; presents the search form and/or search results.
Archivo
- drupal-6.x/
modules/ search/ search.module, line 1153 - Enables site-wide keyword searching.
Código
function search_data($keys = NULL, $type = 'node') {
if (isset($keys)) {
if (module_hook($type, 'search')) {
$results = module_invoke($type, 'search', 'search', $keys);
if (isset($results) && is_array($results) && count($results)) {
if (module_hook($type, 'search_page')) {
return module_invoke($type, 'search_page', $results);
}
else {
return theme('search_results', $results, $type);
}
}
}
}
}