/[drupal]/contributions/modules/apachesolr/apachesolr.admin.inc
ViewVC logotype

Diff of /contributions/modules/apachesolr/apachesolr.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.35 by robertDouglass, Wed Nov 11 18:05:23 2009 UTC revision 1.1.2.36 by pwolanin, Sun Nov 15 14:52:28 2009 UTC
# Line 1  Line 1 
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
# Line 11  function apachesolr_settings() { Line 11  function apachesolr_settings() {
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(

Legend:
Removed from v.1.1.2.35  
changed lines
  Added in v.1.1.2.36

  ViewVC Help
Powered by ViewVC 1.1.3