You are here

function transliteration_form_search_admin_settings_alter in Transliteration 7.3

Same name and namespace in other branches
  1. 6.3 transliteration.module \transliteration_form_search_admin_settings_alter()

Implements hook_form_FORM_ID_alter().

Adds transliteration settings to the search settings form.

File

./transliteration.module, line 104
Converts non-latin text to US-ASCII and sanitizes file names.

Code

function transliteration_form_search_admin_settings_alter(&$form, &$form_state) {
  $form['transliteration'] = array(
    '#type' => 'fieldset',
    '#title' => t('Transliteration'),
  );
  $form['transliteration']['transliteration_search'] = array(
    '#type' => 'checkbox',
    '#title' => t('Transliterate search index and searched strings.'),
    '#description' => t('Enable to allow searching and indexing using US-ASCII character set, i.e. to treat accented and unaccented letters the same.'),
    '#default_value' => variable_get('transliteration_search', TRUE),
  );
}