You are here

function syntaxhighlighter_uninstall in Syntax Highlighter 7

Same name and namespace in other branches
  1. 8 syntaxhighlighter.install \syntaxhighlighter_uninstall()
  2. 6.2 syntaxhighlighter.install \syntaxhighlighter_uninstall()
  3. 6 syntaxhighlighter.install \syntaxhighlighter_uninstall()
  4. 7.2 syntaxhighlighter.install \syntaxhighlighter_uninstall()

File

./syntaxhighlighter.install, line 20
Syntax highlighter module installation file.

Code

function syntaxhighlighter_uninstall() {
  variable_del('syntaxhighlighter_default_expressions');
  variable_del('syntaxhighlighter_enabled_languages');
  variable_del('syntaxhighlighter_legacy_mode');
  variable_del('syntaxhighlighter_lib_location');
  variable_del('syntaxhighlighter_pages');
  variable_del('syntaxhighlighter_tagname');
  variable_del('syntaxhighlighter_theme');
  variable_del('syntaxhighlighter_use_autoloader');
  file_unmanaged_delete('public://syntaxhighlighter.autoloader.js');
  db_delete('filter')
    ->condition('module', 'syntaxhighlighter')
    ->execute();
}