function drush_image_flush_pre_validate

8.0.x image.drush.inc drush_image_flush_pre_validate($style_name = NULL)
7.x image.drush.inc drush_image_flush_pre_validate($style_name = NULL)
master image.drush.inc drush_image_flush_pre_validate($style_name = NULL)

File

commands/core/image.drush.inc, line 73
Image module's drush integration.

Code

function drush_image_flush_pre_validate($style_name = NULL) {
  drush_include_engine('drupal', 'image');
  if (!empty($style_name) && !$style = drush_image_style_load($style_name)) {
    return drush_set_error(dt('Image style !style not recognized.', array('!style' => $style_name)));
  }
}