function simpletest_uninstall

Same name in other branches
  1. 9 core/modules/simpletest/simpletest.install \simpletest_uninstall()
  2. 8.9.x core/modules/simpletest/simpletest.install \simpletest_uninstall()

Implements hook_uninstall().

File

modules/simpletest/simpletest.install, line 156

Code

function simpletest_uninstall() {
    drupal_load('module', 'simpletest');
    simpletest_clean_database();
    // Remove settings variables.
    variable_del('simpletest_httpauth_method');
    variable_del('simpletest_httpauth_username');
    variable_del('simpletest_httpauth_password');
    variable_del('simpletest_clear_results');
    variable_del('simpletest_verbose');
    // Remove generated files.
    file_unmanaged_delete_recursive('public://simpletest');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.