function accessibility_get_active_tests

cis7 accessibility.module accessibility_get_active_tests($load = TRUE)
cle7 accessibility.module accessibility_get_active_tests($load = TRUE)
elmsmedia7 accessibility.module accessibility_get_active_tests($load = TRUE)
icor7 accessibility.module accessibility_get_active_tests($load = TRUE)
meedjum_blog7 accessibility.module accessibility_get_active_tests($load = TRUE)
mooc7 accessibility.module accessibility_get_active_tests($load = TRUE)

Helper function to return all active accessibiliy test entities.

3 calls to accessibility_get_active_tests()
accessibility_content_load_tests_json in sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.inc
accessibility_tests_json in sites/all/modules/ulmus/accessibility/accessibility.pages.inc
Outputs settings and test information in JSON.
accessibility_test_features_export_options in sites/all/modules/ulmus/accessibility/accessibility.features.inc
Implements hook[component]_features_export_options().

File

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

Code

function accessibility_get_active_tests($load = TRUE) {
  $tests = db_select('accessibility_test', 't')->fields('t', array('test_id'))->condition('status', 1)->execute()->fetchAllKeyed(0, 0);
  if ($load) {
    foreach ($tests as &$test) {
      $test = accessibility_test_load($test);
    }
  }
  return $tests;

}
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.