You are here

function rotor_uninstall in Rotor Banner 5

Same name and namespace in other branches
  1. 5.7 rotor.install \rotor_uninstall()
  2. 6.2 rotor.install \rotor_uninstall()
  3. 6 rotor.install \rotor_uninstall()
  4. 7 rotor.install \rotor_uninstall()

Implementation of hook_uninstall().

File

./rotor.install, line 33
Provides install and uninstall functions for rotor.

Code

function rotor_uninstall() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("DROP TABLE {rotor_item};");
      variable_del('rotor_max_items');
      variable_del('rotor_seconds');
      variable_del('rotor_show_tabs');
      variable_del('rotor_group_tabs');
      drupal_set_message(t('Rotor Banner unistalled.'));
      break;
  }
}