function certificate_uninstall in Certificate 6
Same name and namespace in other branches
- 8.3 certificate.install \certificate_uninstall()
- 6.2 certificate.install \certificate_uninstall()
- 7.3 certificate.install \certificate_uninstall()
- 7.2 certificate.install \certificate_uninstall()
- 3.x certificate.install \certificate_uninstall()
Implementation of hook_uninstall().
File
- ./
certificate.install, line 184 - Install the Certificate module.
Code
function certificate_uninstall() {
drupal_uninstall_schema('certificate');
cache_clear_all('certificate:*', 'cache', TRUE);
// Remove variables.
$variables = db_query("SELECT name FROM {variable} WHERE name LIKE '%s_%%'", 'certificate');
while ($variable = db_fetch_object($variables)) {
variable_del($variable->name);
}
variable_del('node_options_certificate');
variable_del('comment_certificate');
}