1 image.module image_style_remove_allowed_uri($style_uri)

Remove an image style URI from the whitelist.

This is usually called after an image has been generated and no longer needs to be in the whitelist.

Parameters

$style_uri: The full URI to the image that should be removed from the whitelist.

File

core/modules/image/image.module, line 1037
Exposes global functionality for creating image styles.

Code

function image_style_remove_allowed_uri($style_uri) {
  // Get the list of added URIs by reference and indicate removal with FALSE.
  $added_uris = &image_style_add_allowed_uri();
  $added_uris[$style_uri] = FALSE;
}