You are here

function boost_uninstall in Boost 6

Same name and namespace in other branches
  1. 7 boost.install \boost_uninstall()

Implementation of hook_uninstall().

File

./boost.install, line 54
Handles Boost module installation and upgrade tasks.

Code

function boost_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE '%s_%%'", 'boost');
  cache_clear_all('variables', 'cache');

  // Delete tables.
  drupal_uninstall_schema('boost');
  module_load_include('inc', 'boost', 'boost.admin');
  if (is_writable('robots.txt') && variable_get('boost_autoupdate_robots_txt', FALSE)) {
    boost_update_robots_txt(FALSE);
  }
  if (is_writable('.htaccess') && variable_get('boost_autoupdate_htaccess', FALSE)) {
    boost_update_htaccess(FALSE);
  }
  drupal_set_message(t('Be sure to remove the boost rules from your .htaccess file.'), 'warning');
}