function invite_uninstall in Invite 6.2
Same name and namespace in other branches
- 5.2 invite.install \invite_uninstall()
- 5 invite.install \invite_uninstall()
- 7.4 invite.install \invite_uninstall()
- 7.2 invite.install \invite_uninstall()
Implementation of hook_uninstall().
File
- ./
invite.install, line 126 - Installation file for invite module.
Code
function invite_uninstall() {
// Drop database schema.
drupal_uninstall_schema('invite');
// Delete variables
$sql = "DELETE from {variable} WHERE name LIKE '%s%%'";
db_query($sql, 'invite_target_role_');
db_query($sql, 'invite_maxnum_');
db_query($sql, 'invite_maxmultiple_');
variable_del('invite_target_role_default');
variable_del('invite_expiry');
variable_del('invite_allow_join_delete');
variable_del('invite_subject');
variable_del('invite_use_users_email');
variable_del('invite_use_users_email_replyto');
variable_del('invite_manual_from');
variable_del('invite_manual_reply_to');
variable_del('invite_page_title');
variable_del('invite_default_mail_template');
variable_del('invite_help_text');
// invite_stats module
variable_del('invite_num_ranks');
}