You are here

glossify.install in Glossify 8

Same filename and directory in other branches
  1. 6.3 glossify.install
  2. 6 glossify.install

Install and uninstall functions for the glossify module.

File

glossify.install
View source
<?php

/**
 * @file
 * Install and uninstall functions for the glossify module.
 */

/**
 * Implements hook_uninstall().
 *
 * This removes the filters when the module is uninstalled.
 */
function glossify_uninstall() {

  /* @var $ConfigManager  Drupal\Core\Config\ConfigManager */
  $filters = filter_formats();
  foreach ($filters as $name => $filter) {

    /* @var $filter Drupal\filter\Entity\FilterFormat */
    $filter
      ->removeFilter('glossify_node');
    $filter
      ->removeFilter('glossify_taxonomy');
    $filter
      ->save();
  }
}

Functions

Namesort descending Description
glossify_uninstall Implements hook_uninstall().