You are here

function configuration_uninstall in Configuration Management 7

Implements hook_uninstall().

File

./configuration.install, line 94

Code

function configuration_uninstall() {
  $config_dir = variable_get('configuration_config_path', conf_path() . '/files/config');
  foreach (glob($config_dir . "/*") as $filename) {
    unlink($filename);
  }
  if (is_file($config_dir . '/.htaccess')) {
    unlink($config_dir . '/.htaccess');
  }
  rmdir($config_dir);
  variable_del('configuration_config_path');
}