search_data
- Versions
- 4.6 – 7
search_data($keys = NULL, $type = 'node')
Perform a standard search on the given keys, and return the formatted results.
Related topics
Code
modules/search.module, line 1068
<?php
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_page', $results, $type);
}
}
}
}
}
?>Login or register to post comments 