1 search_extra_type.module search_extra_type_conditions()

Test conditions callback for hook_search_info().

File

core/modules/search/tests/search_extra_type/search_extra_type.module, line 22
Dummy module implementing a search type for search module testing.

Code

function search_extra_type_conditions() {
  $conditions = array();

  if (!empty($_REQUEST['search_conditions'])) {
    $conditions['search_conditions'] = $_REQUEST['search_conditions'];
  }
  return $conditions;
}