function accessibility_test_features_rebuild

cis7 accessibility.features.inc accessibility_test_features_rebuild($module_name)
cle7 accessibility.features.inc accessibility_test_features_rebuild($module_name)
elmsmedia7 accessibility.features.inc accessibility_test_features_rebuild($module_name)
icor7 accessibility.features.inc accessibility_test_features_rebuild($module_name)
meedjum_blog7 accessibility.features.inc accessibility_test_features_rebuild($module_name)
mooc7 accessibility.features.inc accessibility_test_features_rebuild($module_name)

Implements hook[component]_features_rebuild().

1 call to accessibility_test_features_rebuild()
accessibility_test_features_revert in sites/all/modules/ulmus/accessibility/accessibility.features.inc
Implements hook[component]_features_revert().

File

sites/all/modules/ulmus/accessibility/accessibility.features.inc, line 63

Code

function accessibility_test_features_rebuild($module_name) {
  if (!function_exists($module_name . 'accessibility_test_default')) {
    module_load_include('inc', $module_name, $module_name . '.accessibility_test');
  }
  $accessibility_tests = module_invoke($module_name, 'accessibility_test_default');
  if (!empty($accessibility_tests)) {
    foreach ($accessibility_tests as $machine_name => $accessibility_test) {
      $id = accessibility_get_test_by_machine_name($machine_name);
      if ($id) {
        $accessibility_test->test_id = $id;
      }
      $accessibility_test->changed = time();
      $accessibility_test->created = time();
      accessibility_test_save($accessibility_test);
    }
  }
}
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.