You are here

function signup_uninstall in Signup 7

Same name and namespace in other branches
  1. 5.2 signup.install \signup_uninstall()
  2. 5 signup.install \signup_uninstall()
  3. 6.2 signup.install \signup_uninstall()
  4. 6 signup.install \signup_uninstall()

Implements hook_uninstall().

File

./signup.install, line 173

Code

function signup_uninstall() {

  // Remove tables.
  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_uninstall_schema('signup')
  // TODO Please review the conversion of this statement to the D7 database API syntax.
  $variables = db_query("SELECT name FROM {variable} WHERE name LIKE :name", array(
    ':name' => 'signup%',
  ))
    ->fetchCol();
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}