Last active
January 2, 2016 17:29
-
-
Save batandwa/8336978 to your computer and use it in GitHub Desktop.
Drupal 7 - Removes all the style images generated so new ones can be created when needed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
module_load_include('module', 'image'); | |
$styles = array_keys(image_styles()); | |
image_style_flush($styles); | |
drupal_set_message(t('Flushed images for the following styles: %styles.', array('%styles' => implode(', ', $styles))), 'status', FALSE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment