function invite_uninstall in Invite 7.2
Same name and namespace in other branches
- 5.2 invite.install \invite_uninstall()
- 5 invite.install \invite_uninstall()
- 6.2 invite.install \invite_uninstall()
- 7.4 invite.install \invite_uninstall()
Implements hook_uninstall().
File
- ./
invite.install, line 122 - Installation file for invite module.
Code
function invite_uninstall() {
// Delete variables
$sql = "DELETE from {variable} WHERE name LIKE :varname";
db_query($sql, array(
':varname' => 'invite_target_role_%',
));
db_query($sql, array(
':varname' => 'invite_maxnum_%',
));
db_query($sql, array(
':varname' => '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');
}