/[drupal]/contributions/modules/apachesolr/apachesolr_search.module
ViewVC logotype

Diff of /contributions/modules/apachesolr/apachesolr_search.module

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

revision 1.1.2.6.2.116, Thu Oct 22 13:32:44 2009 UTC revision 1.1.2.6.2.117, Fri Nov 6 10:58:54 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: apachesolr_search.module,v 1.1.2.6.2.115 2009/10/14 13:28:40 pwolanin Exp $  // $Id: apachesolr_search.module,v 1.1.2.6.2.116 2009/10/22 13:32:44 pwolanin Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 815  function apachesolr_search_form_search_f Line 815  function apachesolr_search_form_search_f
815          }          }
816          $new_keywords = strtr($query->get_query_basic(), $replacements);          $new_keywords = strtr($query->get_query_basic(), $replacements);
817    
818          $form['basic']['suggestion'] = array(          // Show only if suggestion is different than current query.
819            '#prefix' => '<div class="spelling-suggestions">',          if ($query->get_query_basic() != $new_keywords) {
820            '#suffix' => '</div>',            $form['basic']['suggestion'] = array(
821            '#type' => 'item',              '#prefix' => '<div class="spelling-suggestions">',
822            '#title' => t('Did you mean'),              '#suffix' => '</div>',
823            '#value' => l($new_keywords, $query->get_path($new_keywords)),              '#type' => 'item',
824          );              '#title' => t('Did you mean'),
825                '#value' => l($new_keywords, $query->get_path($new_keywords)),
826              );
827            }
828        }        }
829      }      }
830    }    }

Legend:
Removed from v.1.1.2.6.2.116  
changed lines
  Added in v.1.1.2.6.2.117

  ViewVC Help
Powered by ViewVC 1.1.2