function activity_uninstall in Activity 5.2
Same name and namespace in other branches
- 5.4 activity.install \activity_uninstall()
- 5.3 activity.install \activity_uninstall()
- 6.2 activity.install \activity_uninstall()
- 6 activity.install \activity_uninstall()
- 7 activity.install \activity_uninstall()
File
- ./
activity.install, line 49 - Install file for activity module.
Code
function activity_uninstall() {
if (db_table_exists('activity')) {
db_query("DROP TABLE {activity}");
}
// Delete any variables that have been set.
// We don't just DELETE FROM {variable}, even though we could.
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'activity_%'");
// Instead we use the API, because API's can change!
while ($row = db_fetch_object($result)) {
variable_del($row->name);
}
}