1 image.module | image_style_remove_allowed_uri($style_uri) |
Remove an image style URI from the allowlist.
This is usually called after an image has been generated and no longer needs to be in the allowlist.
Parameters
$style_uri: The full URI to the image that should be removed from the allowlist.
File
- core/
modules/ image/ image.module, line 1085 - 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;
}