function accessibility_load

cis7 accessibility.module accessibility_load()
cle7 accessibility.module accessibility_load()
elmsmedia7 accessibility.module accessibility_load()
icor7 accessibility.module accessibility_load()
meedjum_blog7 accessibility.module accessibility_load()
mooc7 accessibility.module accessibility_load()

Helper function to load the QUAIL library.

4 calls to accessibility_load()
accessibility_content_init in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.inc
accessibility_reporting_field_attach_view_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/accessibility_reporting.module
Implements hook_field_attach_view_alter().
accessibility_theming_page_build in sites/all/modules/ulmus/accessibility/modules/accessibility_theming/accessibility_theming.module
Implements hook_init().
accessibility_wysiwyg_load in sites/all/modules/ulmus/accessibility/modules/accessibility_wysiwyg/accessibility_wysiwyg.module
Helper function to load accessibility javascript.

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 41

Code

function accessibility_load() {
  $is_loaded = drupal_static(__FUNCTION__);
  if ($is_loaded) {
    return;
  }
  $is_loaded = TRUE;
  $library_path = libraries_get_path('quail');
  $module_path = drupal_get_path('module', 'accessibility');
  drupal_add_js($library_path . '/src/quail.js');
  drupal_add_js($module_path . '/js/accessibility.js');
  drupal_add_css($module_path . '/css/accessibility.css');
  drupal_add_js(array('accessibility' => array('icon_path' => drupal_get_path('module', 'accessibility') . '/css/img/', 'quail_path' => $library_path . '/src/resources')), 'setting');
  module_invoke_all('accessibility_load');
}