You are here

function certificate_uninstall in Certificate 6.2

Same name and namespace in other branches
  1. 8.3 certificate.install \certificate_uninstall()
  2. 6 certificate.install \certificate_uninstall()
  3. 7.3 certificate.install \certificate_uninstall()
  4. 7.2 certificate.install \certificate_uninstall()
  5. 3.x certificate.install \certificate_uninstall()

Implementation of hook_uninstall().

File

./certificate.install, line 129
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');
}