You are here

select_registration_roles.install in Select registration roles 8

Same filename and directory in other branches
  1. 7 select_registration_roles.install

The installation instructions for Select Registration Roles.

File

select_registration_roles.install
View source
<?php

/**
 * @file
 * The installation instructions for Select Registration Roles.
 */

/**
 * Implements hook_install().
 */
function select_registration_roles_install() {
  module_set_weight('select_registration_roles', -5);
}

/**
 * Implements hook_uninstall().
 */
function select_registration_roles_uninstall() {
  $config = \Drupal::configFactory();
  $select_registration_roles_config = $config
    ->getEditable('select_registration_roles.settings');

  // Cleaning garbage.
  $select_registration_roles_config
    ->delete()
    ->save();
}