You are here

function synonyms_uninstall in Synonyms 7

Implements hook_uninstall().

File

./synonyms.install, line 63
Install, update, and uninstall functions for the Synonyms module.

Code

function synonyms_uninstall() {

  // Cleaning all configure variables.
  $results = db_select('variable', 'var')
    ->fields('var', array(
    'name',
  ))
    ->condition('var.name', db_like('synonyms_') . '%', 'LIKE')
    ->execute();
  foreach ($results as $var) {
    variable_del($var->name);
  }
}