function image_drush_command

8.0.x image_drush_command()
6.x image_drush_command()
7.x image_drush_command()
4.x image_drush_command()
5.x image_drush_command()
master image_drush_command()

Implementation of hook_drush_command().


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


function image_drush_command() {
  $items['image-flush'] = array(
    'description' => 'Flush all derived images for a given style.',
    'core' => array('7+'),
    'drupal_dependencies' => array('image'),
    '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;