You are here

function disable_messages_uninstall in Disable Messages 8

Same name and namespace in other branches
  1. 6 disable_messages.install \disable_messages_uninstall()
  2. 7 disable_messages.install \disable_messages_uninstall()
  3. 2.x disable_messages.install \disable_messages_uninstall()

Implements hook_uninstall().

File

./disable_messages.install, line 28
Filter Messages Module install file.

Code

function disable_messages_uninstall() {
  $config = \Drupal::service('config.factory')
    ->getEditable('disable_messages.settings');
  $config
    ->clear('disable_messages_enable');
  $config
    ->clear('disable_messages_ignore_patterns');
  $config
    ->clear('disable_messages_ignore_regex');
  $config
    ->clear('disable_messages_ignore_case');
  $config
    ->clear('disable_messages_filter_by_page');
  $config
    ->clear('disable_messages_page_filter_paths');
  $config
    ->clear('disable_messages_exclude_users');
  $config
    ->clear('disable_messages_enable_debug');
  $config
    ->clear('disable_messages_debug_visible_div');
  $config
    ->save();

  // Permission deletions are handled by core.
}