You are here

function habitat_uninstall in Habitat 7

File

./habitat.install, line 3

Code

function habitat_uninstall() {
  $variables = db_select('variable', 'v')
    ->fields('v', array(
    'name',
  ))
    ->condition('name', db_like("habitat_") . '%', 'LIKE')
    ->execute()
    ->fetchCol();
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}