glossify.install in Glossify 8
Same filename and directory in other branches
Install and uninstall functions for the glossify module.
File
glossify.installView 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
Name | Description |
---|---|
glossify_uninstall | Implements hook_uninstall(). |