You are here

function securesite_uninstall in Secure Site 6.2

Same name and namespace in other branches
  1. 8 securesite.install \securesite_uninstall()
  2. 5 securesite.install \securesite_uninstall()
  3. 6 securesite.install \securesite_uninstall()
  4. 7.2 securesite.install \securesite_uninstall()

Implementation of hook_uninstall().

File

./securesite.install, line 30
Secure Site installation functions.

Code

function securesite_uninstall() {
  if (in_array(SECURESITE_DIGEST, variable_get('securesite_type', array(
    SECURESITE_BASIC,
  )))) {
    $script = variable_get('securesite_password_script', drupal_get_path('module', 'securesite') . '/digest_md5/stored_passwords.php');
    $realm = variable_get('securesite_realm', variable_get('site_name', 'Drupal'));
    exec("{$script} realm=" . escapeshellarg($realm) . ' op=delete');
  }
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'securesite\\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}