function ds_search_search_execute in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_search/ds_search.module \ds_search_search_execute()
Implements hook_search_execute().
File
- modules/
ds_search/ ds_search.module, line 189 - Display Suite search.
Code
function ds_search_search_execute($keys = NULL, $conditions = NULL) {
// Save the keys in case we need them later on.
ds_search_get_keys($keys);
// We will call an extra function which handles the actual search.
// In some cases, we simply copied a lot from the original hook,
// because some modules already called drupal_render and were unsetting
// the #theme key. By using our own search info type, we can call
// hook_search_page ourselves and be as flexible as we need to be.
$ds_search_type = variable_get('ds_search_type', 'node') . '_ds_search_execute';
// We're not going to babysit here, so call directly.
return $ds_search_type($keys, $conditions);
}