You are here

function advanced_help_uninstall in Advanced Help 5

Same name and namespace in other branches
  1. 6 advanced_help.install \advanced_help_uninstall()
  2. 7 advanced_help.install \advanced_help_uninstall()

File

./advanced_help.install, line 35
advanced_help.install Contains install and update functions for advanced_help.

Code

function advanced_help_uninstall() {
  drupal_set_message('Uninstalling advanced_help.');
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("DROP TABLE {advanced_help_index}");
      break;
    case 'pgsql':
      db_query("DROP TABLE {advanced_help_index}");
      break;
  }
  variable_del('advanced_help_last_cron');
}