Commit c7557262 authored by Dries's avatar Dries
Browse files

- Patch #604650 by quicksketch: new image styles were not usable as formatters.

parent 56931446
......@@ -584,6 +584,10 @@ function image_style_flush($style) {
drupal_static_reset('image_styles');
drupal_static_reset('image_effects');
// Clear field caches so that formatters may be added for this style.
field_info_cache_clear();
drupal_theme_rebuild();
// Clear page caches when flushing.
if (module_exists('block')) {
cache_clear_all('*', 'cache_block', TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment