You are here

media_watermark.install in Media watermark 8

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

Media Watermark install file.

File

media_watermark.install
View source
<?php

use Drupal\image\Entity\ImageStyle;

/**
 * @file
 * Media Watermark install file.
 */

/**
 * Implements hook_uninstall().
 */
function media_watermark_uninstall() {

  // Remove media_watermark image style to prevent error on next module turn on.
  $image_style = ImageStyle::load('media_watermark');
  $image_style
    ->delete();
}

Functions

Namesort descending Description
media_watermark_uninstall Implements hook_uninstall().