function image_drush_command

8.0.x image.drush.inc image_drush_command()
6.x image.drush.inc image_drush_command()
7.x image.drush.inc image_drush_command()
4.x image.drush.inc image_drush_command()
5.x image.drush.inc image_drush_command()
master image.drush.inc image_drush_command()

Implementation of hook_drush_command().

File

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

Code

function image_drush_command() {
  $items['image-flush'] = array(
    'description' => 'Flush all derived images for a given style.',
    'core' => array('7+'),
    'arguments' => array(
      'style' => 'An image style machine name. If not provided, user may choose from a list of names.',
    ),
    'options' => array(
      'all' => 'Flush all derived images',
    ),
    'examples' => array(
      'drush image-flush' => 'Pick an image style and then delete its images.',
      'drush image-flush thumbnail' => 'Delete all thumbnail images.',
      'drush image-flush --all' => 'Flush all derived images. They will be regenerated on the fly.',
    ),
  );
  return $items;
}