function sample_search_conditions_callback in Bibliography Module 7.2
Same name and namespace in other branches
- 7 includes/biblio.search.inc \sample_search_conditions_callback()
1 string reference to 'sample_search_conditions_callback'
- _biblio_search_info in includes/
biblio.search.inc
File
- includes/
biblio.search.inc, line 11
Code
function sample_search_conditions_callback($keys) {
$conditions = array();
if (!empty($_REQUEST['keys'])) {
$conditions['keys'] = $_REQUEST['keys'];
}
if (!empty($_REQUEST['sample_search_keys'])) {
$conditions['sample_search_keys'] = $_REQUEST['sample_search_keys'];
}
if ($force_keys = variable_get('sample_search_force_keywords', '')) {
$conditions['sample_search_force_keywords'] = $force_keys;
}
return $conditions;
}