You are here

function bueditor_uninstall in BUEditor 5

Same name and namespace in other branches
  1. 6.2 bueditor.install \bueditor_uninstall()
  2. 6 bueditor.install \bueditor_uninstall()
  3. 7 bueditor.install \bueditor_uninstall()

Implementation of hook_uninstall().

File

./bueditor.install, line 72

Code

function bueditor_uninstall() {
  db_query('DROP TABLE {bueditor_buttons}');
  db_query('DROP TABLE {bueditor_editors}');
  if ($GLOBALS['db_type'] == 'mysql' || $GLOBALS['db_type'] == 'mysqli') {
    db_query("DELETE FROM {sequences} WHERE name='bueditor_editors_eid'");
  }
  variable_del('bueditor_user1');
  variable_del('bueditor_roles');
  variable_del('bueditor_cron_last');
}