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}');
}

CommentFileSizeAuthor
#2 userpoints_uninstall.patch840 bytesdami

Comments

thierry_gd’s picture

invite_uninstall() has to be replaced by userpoints_uninstall()

dami’s picture

Status: Active » Needs review
StatusFileSize
new840 bytes

ok, here it is, let me know if i missed anything.

kbahey’s picture

Status: Needs review » Fixed

Committed a modified version to 5.x and HEAD.

Thanks to all.

Anonymous’s picture

Status: Fixed » Closed (fixed)