You are here

function pagerer_uninstall in Pagerer 7

Implements hook_uninstall().

File

./pagerer.install, line 30
Pagerer install

Code

function pagerer_uninstall() {

  // Remove all variables whose name begins with 'pagerer'.
  $res = db_select('variable', 'v')
    ->fields('v')
    ->condition('name', 'pagerer%', 'LIKE')
    ->execute();
  if ($res) {
    foreach ($res as $row) {
      variable_del($row->name);
      drupal_set_message(t('Variable %var has been deleted.', array(
        '%var' => $row->name,
      )));
    }
  }
}