function accessibility_content_load_tests_json

cis7 accessibility_content.inc accessibility_content_load_tests_json()
cle7 accessibility_content.inc accessibility_content_load_tests_json()
elmsmedia7 accessibility_content.inc accessibility_content_load_tests_json()
icor7 accessibility_content.inc accessibility_content_load_tests_json()
meedjum_blog7 accessibility_content.inc accessibility_content_load_tests_json()
mooc7 accessibility_content.inc accessibility_content_load_tests_json()

File

sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.inc, line 3

Code

function accessibility_content_load_tests_json() {
  $tests = _accessibility_content_get_quail_tests();
  $result = array();
  $existing_tests = accessibility_get_active_tests();
  foreach ($tests as $test_name => $test) {
    if (isset($existing_tests[$test_name])) {
      $test->accessibility_content_test_id = $existing_tests[$test_name];
      $result[$test_name] = $test;
    }
  }
  drupal_json_output(array('guideline' => array_keys($result), 'tests' => $result));
}