You are here

function apachesolr_search_settings_page in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr_search.admin.inc \apachesolr_search_settings_page()
  2. 6.2 apachesolr_search.admin.inc \apachesolr_search_settings_page()

Menu callback - the settings form.

1 string reference to 'apachesolr_search_settings_page'
apachesolr_search_menu in ./apachesolr_search.module
Implementation of hook_menu().

File

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

Code

function apachesolr_search_settings_page() {

  // try to fetch the schema fields
  try {
    $solr = apachesolr_get_solr();
    $fields = $solr
      ->getFields();
    $output .= drupal_get_form('apachesolr_search_settings_form', $fields);
  } catch (Exception $e) {
    watchdog('Apache Solr', nl2br(check_plain($e
      ->getMessage())), WATCHDOG_ERROR);
    drupal_set_message(nl2br(check_plain($e
      ->getMessage())), "warning");
    $output .= t('Cannot get information about the fields in the index at this time.');
  }
  return $output;
}