You are here

function shoutbox_uninstall in Shoutbox 5

Same name and namespace in other branches
  1. 6.2 shoutbox.install \shoutbox_uninstall()
  2. 6 shoutbox.install \shoutbox_uninstall()
  3. 7.2 shoutbox.install \shoutbox_uninstall()
  4. 7 shoutbox.install \shoutbox_uninstall()

Uninstall shoutbox.

File

./shoutbox.install, line 21

Code

function shoutbox_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
    case 'mysql':
    case 'mysqli':
    default:
      db_query("DROP TABLE {shoutbox}");
      break;
  }

  // Delete variables.
  variable_del('shoutbox_expire');
  variable_del('shoutbox_showamount');
  variable_del('shoutbox_ascending');
  variable_del('shoutbox_defaultname');
  variable_del('shoutbox_shownamefield');
  variable_del('shoutbox_showurlfield');
  variable_del('shoutbox_refresh');
  variable_del('shoutbox_anonymous_timeout');
  variable_del('shoutbox_registered_timeout');
  variable_del('shoutbox_filter_format');
}