/[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.111.2.26, Wed Nov 4 12:31:10 2009 UTC revision 1.1.2.6.2.111.2.27, Fri Nov 6 10:56:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: apachesolr_search.module,v 1.1.2.6.2.111.2.25 2009/10/19 14:32:52 robertDouglass Exp $  // $Id: apachesolr_search.module,v 1.1.2.6.2.111.2.26 2009/11/04 12:31:10 robertDouglass Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 990  function apachesolr_search_form_search_f Line 990  function apachesolr_search_form_search_f
990          }          }
991          $new_keywords = strtr($query->get_query_basic(), $replacements);          $new_keywords = strtr($query->get_query_basic(), $replacements);
992    
993          $form['basic']['suggestion'] = array(          // Show only if suggestion is different than current query.
994            '#prefix' => '<div class="spelling-suggestions">',          if ($query->get_query_basic() != $new_keywords) {
995            '#suffix' => '</div>',            $form['basic']['suggestion'] = array(
996            '#type' => 'item',              '#prefix' => '<div class="spelling-suggestions">',
997            '#title' => t('Did you mean'),              '#suffix' => '</div>',
998            '#value' => l($new_keywords, $query->get_path($new_keywords)),              '#type' => 'item',
999          );              '#title' => t('Did you mean'),
1000                '#value' => l($new_keywords, $query->get_path($new_keywords)),
1001              );
1002            }
1003        }        }
1004      }      }
1005    }    }

Legend:
Removed from v.1.1.2.6.2.111.2.26  
changed lines
  Added in v.1.1.2.6.2.111.2.27

  ViewVC Help
Powered by ViewVC 1.1.2