Monday, March 1, 2010

Change Drupal 6 Glossary Search mode: Drupal 6 Module Glossary search terms as a "term"

Drupal Glossary looks for terms as "term". That produces quite a few false negative searches. To change that we had to intervene in the source code of the glossary module and change line 945 from the following:
$output .= l(t('search for term'), 'search/node/'. $term->name .'',
ist edited to:
$output .= l(t('search for term'), 'search/node/"'. $term->name .'"',
Of course, this modification is not stable during upgrade of the glossary module. it always has to be restored manually - while the Glossary module with the "term" comes as the default search.

No comments: