You are here

function apachesolr_search_pages_config_form in Apache Solr Search 6.3

1 string reference to 'apachesolr_search_pages_config_form'
apachesolr_search_page_list_all in ./apachesolr_search.admin.inc
Menu callback for the overview page showing custom search pages and blocks.

File

./apachesolr_search.admin.inc, line 64
Administrative settings for searching.

Code

function apachesolr_search_pages_config_form(&$form_state) {
  $search_pages = apachesolr_search_load_all_search_pages();
  foreach ($search_pages as $search_page_id => $search_page) {
    $options[$search_page_id] = $search_page['label'];
  }
  $options['drupal_core'] = t('Drupal Core Search');
  $form['apachesolr_search_default_search_page'] = array(
    '#type' => 'radios',
    '#title' => t('Submit Search block requests to this page'),
    '#default_value' => variable_get('apachesolr_search_default_search_page', 'drupal_core'),
    '#options' => $options,
    '#description' => t('Makes the search block submit to Apache Solr Search'),
  );
  return system_settings_form($form);
}