You are here

function invite_uninstall in Invite 5.2

Same name and namespace in other branches
  1. 5 invite.install \invite_uninstall()
  2. 6.2 invite.install \invite_uninstall()
  3. 7.4 invite.install \invite_uninstall()
  4. 7.2 invite.install \invite_uninstall()

Implementation of hook_uninstall().

File

./invite.install, line 73
Installation file for invite module.

Code

function invite_uninstall() {

  // Drop database table
  db_query('DROP TABLE {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');
}