You are here

function activity_uninstall in Activity 7

Same name and namespace in other branches
  1. 5.4 activity.install \activity_uninstall()
  2. 5.2 activity.install \activity_uninstall()
  3. 5.3 activity.install \activity_uninstall()
  4. 6.2 activity.install \activity_uninstall()
  5. 6 activity.install \activity_uninstall()

File

./activity.install, line 182

Code

function activity_uninstall() {

  // clean up actions and triggers
  db_query("DELETE FROM {trigger_assignments} WHERE aid IN (SELECT aid FROM {actions} WHERE callback = 'activity_record')");
  db_query("DELETE FROM {actions} WHERE callback = 'activity_record'");

  // clean variable table
  db_query("DELETE FROM {variable} WHERE name = 'activity_expire' OR name = 'activity_count_expire' OR name = 'activity_access_realms'");
}