Adding the following lines at the end of .install file will allow the module to be properly uninstalled
/**
* Implementation of hook_uninstall().
*/
function invite_uninstall() {
db_query('DROP TABLE {userpoints}');
db_query('DROP TABLE {userpoints_txn}');
}
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | userpoints_uninstall.patch | 840 bytes | dami |
Comments
Comment #1
thierry_gd commentedinvite_uninstall() has to be replaced by userpoints_uninstall()
Comment #2
dami commentedok, here it is, let me know if i missed anything.
Comment #3
kbahey commentedCommitted a modified version to 5.x and HEAD.
Thanks to all.
Comment #4
(not verified) commented