function invite_uninstall in Invite 7.4
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.2 invite.install \invite_uninstall()
Implements hook_install().
File
- ./
invite.install, line 194 - Contains install and update functions for Invite.
Code
function invite_uninstall() {
$invite_vars = array(
'invite_message_editable',
'invite_default_mail_subject',
'invite_default_mail_body',
'invite_default_replace_tokens',
'invite_message_editable',
'invite_use_users_email_replyto',
'invite_manual_from',
'invite_use_users_email',
);
foreach ($invite_vars as $invite_var) {
variable_del($invite_var);
}
$variables = db_select('variable', 'v')
->fields('v')
->condition('name', 'invite_type_%', 'LIKE')
->execute();
foreach ($variables as $variable) {
variable_del($variable->name);
}
}