| 1 |
<?php |
<?php |
| 2 |
// $Id: apachesolr.admin.inc,v 1.1.2.34 2009/10/26 19:17:34 robertDouglass Exp $ |
// $Id: apachesolr.admin.inc,v 1.1.2.35 2009/11/11 18:05:23 robertDouglass Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 11 |
|
|
| 12 |
// Perform a check to ensure the server is there |
// Perform a check to ensure the server is there |
| 13 |
if (empty($_POST)) { |
if (empty($_POST)) { |
| 14 |
$requirements = apachesolr_requirements('runtime'); |
module_load_include('install', 'apachesolr'); |
| 15 |
$status = $requirements['apachesolr']['severity'] == 2 ? 'error' : 'status'; |
foreach (apachesolr_requirements('runtime') as $requirement) { |
| 16 |
drupal_set_message($requirements['apachesolr']['value'], $status); |
$status = $requirement['severity'] == REQUIREMENT_ERROR ? 'error' : 'status'; |
| 17 |
|
drupal_set_message($requirement['title'] . ': ' . $requirement['value'], $status); |
| 18 |
|
} |
| 19 |
} |
} |
| 20 |
|
|
| 21 |
$form['apachesolr_host'] = array( |
$form['apachesolr_host'] = array( |