accessibility_content.admin.inc

  1. cis7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  2. cle7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  3. ecd7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  4. elmsmedia7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  5. harmony7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  6. icor7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  7. meedjum_blog7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
  8. mooc7 sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc

Functions

File

sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.admin.inc
View source
  1. <?php
  2. function accessibility_content_admin_form() {
  3. $form = array();
  4. $form['accessibility_content_auto_check'] = array(
  5. '#type' => 'checkbox',
  6. '#title' => t('Automatically check page'),
  7. '#default_value' => variable_get('accessibility_content_auto_check', FALSE),
  8. );
  9. $form['accessibility_content_show_toggle'] = array(
  10. '#type' => 'checkbox',
  11. '#title' => t('Show accessibility check toggle'),
  12. '#default_value' => variable_get('accessibility_content_show_toggle', TRUE),
  13. );
  14. $form['toggle'] = array(
  15. '#type' => 'fieldset',
  16. '#title' => t('Toggle settings'),
  17. '#collapsible' => TRUE,
  18. '#collapsed' => TRUE,
  19. );
  20. $form['toggle']['accessibility_content_toggle_message_off'] = array(
  21. '#type' => 'textfield',
  22. '#title' => t('Message to show when accessibility checking is off'),
  23. '#default_value' => variable_get('accessibility_content_toggle_message_off', t('Check page for accessibility')),
  24. );
  25. $form['toggle']['accessibility_content_toggle_message_on'] = array(
  26. '#type' => 'textfield',
  27. '#title' => t('Message to show when accessibility checking is on'),
  28. '#default_value' => variable_get('accessibility_content_toggle_message_on', t('Hide checks for accessibility')),
  29. );
  30. $form['accessibility_disabled_form_message'] = array(
  31. '#type' => 'textarea',
  32. '#title' => t('Message to show when a user is prevented from submitting a form because of accessibility errors'),
  33. '#default_value' => variable_get('accessibility_disabled_form_message', t('You have been prevented from submitting this form because of the following accessibility errors.')),
  34. );
  35. return system_settings_form($form);
  36. }