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;

}