function signature_forum_uninstall in Signatures for Forums 5.2
Same name and namespace in other branches
- 5 signature_forum.install \signature_forum_uninstall()
- 6 signature_forum.install \signature_forum_uninstall()
- 7 signature_forum.install \signature_forum_uninstall()
Implementation of hook_uninstall()
File
- ./
signature_forum.install, line 40
Code
function signature_forum_uninstall() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("UPDATE {users}, {users_signature}\n SET {users}.signature={users_signature}.signature\n WHERE {users}.uid={users_signature}.uid");
break;
case 'pgsql':
db_query("UPDATE {users} SET signature={users_signature}.signature FROM {users_signature}\n WHERE {users}.uid={users_signature}.uid");
break;
}
db_query("DROP TABLE {users_signature}");
variable_del('signature_forum_settings');
}