You are here

mailcontrol.install in Mailcontrol 8

Same filename and directory in other branches
  1. 6 mailcontrol.install
  2. 7 mailcontrol.install

This is the install file of the module.

It's purpose is to remove variables created by the module in case the module is being disabled.

File

mailcontrol.install
View source
<?php

/**
 * @file
 * This is the install file of the module.
 *
 * It's purpose is to remove variables created by the module
 * in case the module is being disabled.
 */

/**
 * Implements hook_uninstall().
 */
function mailcontrol_uninstall() {
  \Drupal::service('config.factory')
    ->getEditable('user.settings')
    ->set('notify.register_admin_created', TRUE)
    ->set('notify.register_pending_approval', TRUE)
    ->set('notify.register_no_approval_required', TRUE)
    ->set('notify.cancel_confirm', TRUE)
    ->set('notify.password_reset', TRUE)
    ->save();
}

Functions

Namesort descending Description
mailcontrol_uninstall Implements hook_uninstall().