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));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.