You are here

function media_watermark_uninstall in Media watermark 8

Same name and namespace in other branches
  1. 7 media_watermark.install \media_watermark_uninstall()

Implements hook_uninstall().

File

./media_watermark.install, line 13
Media Watermark install file.

Code

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();
}