function a11y_admin_settings in Accessibility toolkit 7
Admin settings form.
1 string reference to 'a11y_admin_settings'
- a11y_menu in ./
a11y.module - Implements hook_menu().
File
- ./
a11y.module, line 314 - A11y accessibiliy toolkit module to help people.
Code
function a11y_admin_settings($form, &$form_state) {
$form['sim'] = array(
'#type' => 'fieldset',
'#title' => t('Simulators'),
'#description' => t('Allow for simulating different accessibility issues. This is useful to see how your site would possibly be viewed by people with different conditions. This is a mode intended for developers and site builders as the modes produce accessibility issues by design to help you empathize.'),
'#collapsed' => TRUE,
'#collapsible' => TRUE,
);
$form['sim']['a11y_sim_dyslexia'] = array(
'#type' => 'checkbox',
'#title' => t('Allow dyslexia simulator'),
'#default_value' => variable_get('a11y_sim_dyslexia', 1),
'#description' => t('This produces an effect to content that attempts to simulate the affects of dyslexia.'),
'#required' => FALSE,
);
$form['sim']['a11y_sim_field_loss'] = array(
'#type' => 'checkbox',
'#title' => t('Allow field loss simulator'),
'#default_value' => variable_get('a11y_sim_field_loss', 1),
'#description' => t('This produces an effect to content that attempts to simulate the affects of field loss.'),
'#required' => FALSE,
);
$form['sim']['a11y_sim_colorblind'] = array(
'#type' => 'checkbox',
'#title' => t('Allow color blind simulator'),
'#default_value' => variable_get('a11y_sim_colorblind', 1),
'#description' => t('Manipulates content to filter it through different types of color blindness.'),
'#required' => FALSE,
);
$form['config'] = array(
'#type' => 'fieldset',
'#title' => t('Button configuration'),
'#description' => t('Which accessibility options appear in the block.'),
'#collapsed' => FALSE,
'#collapsible' => TRUE,
);
// domain default state
$form['config']['a11y_domain'] = array(
'#type' => 'textfield',
'#title' => t('Cookie domain'),
'#default_value' => variable_get('a11y_domain', ''),
'#description' => t('Define the scope of the accessibility settings. This way you can keep UX patterns the same across subdomains for example.'),
'#required' => FALSE,
);
// opendyslexic default state
$form['config']['a11y_opendyslexic'] = array(
'#type' => 'checkbox',
'#title' => t('Allow open dyslexic font'),
'#default_value' => variable_get('a11y_opendyslexic', 1),
'#description' => t('This loads a css file that allows the user to forcibly override the font used by your site to be Open dyslexic, a font developed for those with dyslexia. You can find out more at http://opendyslexic.org/'),
'#required' => FALSE,
);
// a11y_speechsynth default state
$form['config']['a11y_speechsynth'] = array(
'#type' => 'checkbox',
'#title' => t('Allow reading body of text to the user'),
'#default_value' => variable_get('a11y_speechsynth', 1),
'#description' => t('This will use a browser based computer voice in order to read the text of the page to the user.'),
'#required' => FALSE,
);
$form['config']['a11y_speechsynthSelector'] = array(
'#type' => 'textfield',
'#title' => t('jQuery Selector for what to read when selected.'),
'#default_value' => variable_get('a11y_speechsynthSelector', 'article'),
'#description' => t('This targets the field, converts it to just text() and then will read it to the end user.'),
'#required' => FALSE,
);
// contrast default state
$form['config']['a11y_contrast'] = array(
'#type' => 'checkbox',
'#title' => t('Allow contrast'),
'#default_value' => variable_get('a11y_contrast', 1),
'#description' => t('Allow the user to adjust the contrast of your site.'),
'#required' => FALSE,
);
// textsize default state
$form['config']['a11y_textsize'] = array(
'#type' => 'checkbox',
'#title' => t('Allow Text resize'),
'#default_value' => variable_get('a11y_textsize', 1),
'#description' => t('Allow the user to adjust the text size of your content.'),
'#required' => FALSE,
);
// animation default state
$form['config']['a11y_animation'] = array(
'#type' => 'checkbox',
'#title' => t('Allow disabling animation'),
'#default_value' => variable_get('a11y_animation', 1),
'#description' => t('Allow the user to disable css/js animations on your site.'),
'#required' => FALSE,
);
return system_settings_form($form);
}