function search404_block_view in Search 404 7
Implements hook_block_view().
File
- ./
search404.module, line 75 - Handles all the searching when a 404 occurs.
Code
function search404_block_view($delta = '') {
if ($delta == 'search404_results') {
$block = array();
module_load_include('inc', 'search404', 'search404.page');
$keys = search404_get_keys();
list($default_search, $type_search) = search404_get_default_search();
$block['content'] = drupal_render(search404_results($keys, $type_search));
return $block;
}
}