nodeactivity.install in Activity 5.3
File
contrib/nodeactivity/nodeactivity.install
View source
<?php
function nodeactivity_uninstall() {
if (module_exists('activityhistory')) {
db_query("DELETE FROM {activity_history} WHERE aid IN (SELECT aid FROM {activity} WHERE module = '%s')", 'nodeactivity');
}
db_query("DELETE FROM {activity_targets} WHERE aid IN (SELECT aid FROM {activity} WHERE module = '%s')", 'nodeactivity');
db_query("DELETE FROM {activity} WHERE module = '%s'", 'nodeactivity');
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'nodeactivity_%'");
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
}