You are here

function collageformatter_flush_style_submit in Collage Formatter 7

Same name and namespace in other branches
  1. 8 collageformatter.module \collageformatter_flush_style_submit()

Flushes collageformatter style images.

2 string references to 'collageformatter_flush_style_submit'
collageformatter_form_field_ui_display_overview_form_alter in ./collageformatter.module
Implements hook_form_FORM_ID_alter().
collageformatter_form_views_ui_edit_display_form_alter in ./collageformatter.views.inc
Implements hook_form_FORM_ID_alter().

File

./collageformatter.module, line 1075
Main file for Collage Formatter module.

Code

function collageformatter_flush_style_submit() {
  $style = image_style_load('collageformatter');
  image_style_flush($style);
  drupal_set_message(t('Style %style has been flushed.', array(
    '%style' => 'collageformatter',
  )));
}