You are here

function show_email_uninstall in Show Email Address 7

Implements hook_install().

File

./show_email.install, line 19
Install, update and uninstall functions for show email module.

Code

function show_email_uninstall() {

  // Delete all vars in Show Email module.
  $sql = 'SELECT name FROM {variable} WHERE name LIKE :name';
  $result = db_query($sql, array(
    ':name' => db_like('show_email_') . '%',
  ));
  foreach ($result as $var) {
    variable_del($var->name);
  }
}