function activity_uninstall in Activity 7
Same name and namespace in other branches
- 5.4 activity.install \activity_uninstall()
- 5.2 activity.install \activity_uninstall()
- 5.3 activity.install \activity_uninstall()
- 6.2 activity.install \activity_uninstall()
- 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'");
}