function accessibility_test_delete_multiple

cis7 accessibility.module accessibility_test_delete_multiple(array $test_ids)
cle7 accessibility.module accessibility_test_delete_multiple(array $test_ids)
elmsmedia7 accessibility.module accessibility_test_delete_multiple(array $test_ids)
icor7 accessibility.module accessibility_test_delete_multiple(array $test_ids)
meedjum_blog7 accessibility.module accessibility_test_delete_multiple(array $test_ids)
mooc7 accessibility.module accessibility_test_delete_multiple(array $test_ids)

Delete multiple accessibility tests.

1 call to accessibility_test_delete_multiple()
accessibility_test_delete in sites/all/modules/ulmus/accessibility/accessibility.module
Deletes an accessibility test.

File

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

Code

function accessibility_test_delete_multiple(array $test_ids) {
  $tests = accessibility_test_load_multiple($test_ids);
  foreach ($tests as $test) {
    module_invoke_all('accessibility_test_delete', $test);
    field_attach_delete('accessibility_test', $test);
    db_delete('accessibility_test')->condition('test_id', $test->test_id)->execute();
  }
}