You are here

function picture_drush_command in Picture 7.2

Implementation of hook_drush_command().

File

./picture.drush.inc, line 11
Drush integration for the Picture module.

Code

function picture_drush_command() {
  $items['picture-mapping-flush'] = array(
    'description' => 'Flush all derived images for a given picture mapping.',
    'arguments' => array(
      'name' => 'A picture mapping machine name. If not provided, user may choose from a list of names.',
    ),
    'examples' => array(
      'drush picture-mapping-flush' => 'Pick a picture mapping and then delete its image derivatives.',
      'drush picture-mapping-flush example_mapping' => 'Delete all image derivatives used by the example_mapping picture mapping.',
    ),
    'aliases' => array(
      'pmf',
    ),
  );
  return $items;
}