function taxonomy_dupecheck_settings in Taxonomy dupecheck 6
Form builder; creates and displays the Taxonomy dupecheck configuration settings form.
1 string reference to 'taxonomy_dupecheck_settings'
- taxonomy_dupecheck_menu in ./
taxonomy_dupecheck.module - Implements hook_menu().
File
- ./
taxonomy_dupecheck.module, line 43 - Module file for the Taxonomy dupecheck module.
Code
function taxonomy_dupecheck_settings() {
// Checkboxes to choose what should be checked for dupes (vocab, terms, both)
$form['taxonomy_dupecheck_types'] = array(
'#type' => 'checkboxes',
'#title' => 'Check for duplicate',
'#default_value' => variable_get('taxonomy_dupecheck_types', array()),
'#options' => array(
'vocab' => t('Vocabularies'),
'term' => t('Terms (within a vocabulary)'),
),
);
// Checkbox to indicate whether the check should be case-sensitive
$form['taxonomy_dupecheck_case_sensitive'] = array(
'#type' => 'checkbox',
'#title' => "Case-sensitive comparison (e.g. 'Foo' and 'foo' are not duplicates if checked).",
'#default_value' => variable_get('taxonomy_dupecheck_case_sensitive', 0),
);
return system_settings_form($form);
}