function _custom_search_filter_keys in Custom Search 7
Same name and namespace in other branches
- 6 custom_search.module \_custom_search_filter_keys()
Filter the types.
1 string reference to '_custom_search_filter_keys'
- custom_search_submit in ./
custom_search.module - Alter the search to respect the search modes selected.
File
- ./
custom_search.module, line 730 - Bring customizations to the default search box
Code
function _custom_search_filter_keys($val) {
return strlen($val) > 2 && $val[1] == '-' ? drupal_substr($val, 2) : $val;
}