You are here

function image_replace_remove in Image Replace 7

Remove the given image replacement mapping if it exists.

Parameters

string $target_style: The target image style name.

string $target_uri: The uri of the image for which to remove the replacement.

2 calls to image_replace_remove()
image_replace_field_attach_presave in ./image_replace.module
Implements hook_field_attach_presave().
ReplaceEffectTest::testReplaceEffect in src/Tests/ReplaceEffectTest.php
Tests functionality of the replace image effect.

File

./image_replace.module, line 57
Provides an image style effect replacing the whole image with another one.

Code

function image_replace_remove($target_style, $target_uri) {
  return db_delete('image_replace')
    ->condition('target_style', $target_style)
    ->condition('target_uri', $target_uri)
    ->execute();
}