accessibility_theming.module

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

Functions

File

sites/all/modules/ulmus/accessibility/modules/accessibility_theming/accessibility_theming.module
View source
  1. <?php
  2. /**
  3. * Implements hook_permission().
  4. */
  5. function accessibility_theming_permission() {
  6. return array('access accessibility theming' => array(
  7. 'title' => t('Access accessibility theming'),
  8. 'description' => t('Users can run accessibility tests on the entire page.'))
  9. );
  10. }
  11. /**
  12. * Implements hook_init().
  13. */
  14. function accessibility_theming_page_build(&$page) {
  15. if (!user_access('access accessibility theming')) {
  16. return;
  17. }
  18. accessibility_load();
  19. drupal_add_js(drupal_get_path('module', 'accessibility_theming') . '/js/accessibility_theming.js');
  20. drupal_add_css(drupal_get_path('module', 'accessibility_theming') . '/css/accessibility_theming.css');
  21. }