You are here

function rustemmer_search in Russian stemming 6

Implements hook_search().

File

./rustemmer.module, line 54
Russian stemming algorith provided by Dr Martin Porter

Code

function rustemmer_search($op = 'search', $keys = NULL) {
  if ($op == 'admin') {
    $form = array();
    $form['rustemmer_stemcaching'] = array(
      '#type' => 'checkbox',
      '#title' => t('Stem caching'),
      '#default_value' => variable_get('rustemmer_stemcaching', 0),
      '#description' => t('Apply stem caching while performing search phrase stemming. Warning: This could lead to additional memory consumption while indexing.'),
    );
    return $form;
  }
}