You are here

function syntaxhighlighter_uninstall in Syntax Highlighter 8

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

Implements hook_uninstall().

File

./syntaxhighlighter.install, line 32
Syntax Highlighter module installation file.

Code

function syntaxhighlighter_uninstall() {
  file_unmanaged_delete('public://js/syntaxhighlighter.autoloader.js');
  @\Drupal::service('file_system')
    ->rmdir('public://js');
}