You are here

function current_search_get_default_searcher in Facet API 7

Same name and namespace in other branches
  1. 6.3 contrib/current_search/current_search.block.inc \current_search_get_default_searcher()
  2. 7.2 contrib/current_search/current_search.block.inc \current_search_get_default_searcher()

Gets the default searcher.

@todo Figure out a better default system.

Return value

The default searcher.

3 calls to current_search_get_default_searcher()
current_search_form_block_admin_configure_alter in contrib/current_search/current_search.block.inc
Implements hook_form_FORM_ID_alter().
current_search_get_block_searcher in contrib/current_search/current_search.block.inc
Gets the searcher associated with the delta.
current_search_settings_form in contrib/current_search/plugins/export_ui/current_search_export_ui.class.php
Define the preset add/edit form.

File

contrib/current_search/current_search.block.inc, line 231
Block hook implementations and block form alterations.

Code

function current_search_get_default_searcher() {
  $options = current_search_get_searcher_options();
  return key($options);
}