function commentformsettings_uninstall in Node and Comments Form Settings 6.2
Same name and namespace in other branches
- 6.3 commentformsettings/commentformsettings.install \commentformsettings_uninstall()
- 7.3 commentformsettings/commentformsettings.install \commentformsettings_uninstall()
- 7.2 commentformsettings/commentformsettings.install \commentformsettings_uninstall()
Implementation of hook_uninstall(). Remove the variables this module created.
File
- commentformsettings/
commentformsettings.install, line 16
Code
function commentformsettings_uninstall() {
// remove all variables we created
$variables = db_query("SELECT name FROM {variable} WHERE name LIKE 'commentformsettings%%'");
while ($variable = db_fetch_object($variables)) {
variable_del($variable->name);
}
update_sql("DELETE FROM {system} WHERE name like '%commentformsettings'");
}