You are here

function userpoints_uninstall in User Points 6

Same name and namespace in other branches
  1. 5.3 userpoints.install \userpoints_uninstall()
  2. 5 userpoints.install \userpoints_uninstall()
  3. 5.2 userpoints.install \userpoints_uninstall()
  4. 7.2 userpoints.install \userpoints_uninstall()
  5. 7 userpoints.install \userpoints_uninstall()

Implementation of hook_uninstall().

File

./userpoints.install, line 177

Code

function userpoints_uninstall() {
  drupal_uninstall_schema('userpoints');
  db_query("DELETE FROM {variable} WHERE name like 'userpoints_%'");
  $vid = db_result(db_query("SELECT vid FROM {vocabulary} WHERE module='userpoints'"));
  if ($vid) {
    taxonomy_del_vocabulary($vid);
  }
}