You are here

function apachesolr_environment_settings_page in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.admin.inc \apachesolr_environment_settings_page()
  2. 7 apachesolr.admin.inc \apachesolr_environment_settings_page()

File

./apachesolr.admin.inc, line 53
Administrative pages for the Apache Solr framework.

Code

function apachesolr_environment_settings_page($environment = NULL) {
  if (empty($environment)) {
    $env_id = apachesolr_default_environment();
    $environment = apachesolr_environment_load($env_id);
  }
  $env_id = $environment['env_id'];

  // Initializes output with information about which environment's setting we are
  // editing, as it is otherwise not transparent to the end user.
  $output['apachesolr_environment'] = theme('apachesolr_settings_title', $env_id);
  $output['form'] = drupal_get_form('apachesolr_environment_edit_form', $environment);
  $build_output = NULL;
  foreach ($output as $build_result) {
    $build_output .= $build_result;
  }
  return $build_output;
}