You are here

gdpr_dump.install in General Data Protection Regulation 3.0.x

Install file for the gdpr_dump module.

File

modules/gdpr_dump/gdpr_dump.install
View source
<?php

/**
 * @file
 * Install file for the gdpr_dump module.
 */

/**
 * Implements hook_requirements().
 */
function gdpr_dump_requirements() {
  $requirements = [];
  $requirements['gdpr_dump_drush'] = [
    'title' => t('GDPR Dump - Drush'),
    'value' => t('This module needs Drush 9 to function.'),
    'severity' => REQUIREMENT_INFO,
  ];
  return $requirements;
}

/**
 * Enable the 'Anonymizer' module.
 */
function gdpr_dump_update_8001() {

  /** @var \Drupal\Core\Extension\ModuleInstallerInterface $installer */
  $installer = Drupal::service('module_installer');
  $installer
    ->install([
    'anonymizer',
  ]);
}

Functions

Namesort descending Description
gdpr_dump_requirements Implements hook_requirements().
gdpr_dump_update_8001 Enable the 'Anonymizer' module.