You are here

function imagecache_drush_command in ImageCache 6.2

Implementation of hook_drush_command().

File

./imagecache.drush.inc, line 6

Code

function imagecache_drush_command() {
  $items = array();
  $items['imagecache-flush'] = array(
    'callback' => 'imagecache_drush_preset_flush',
    'description' => dt('Flush an imagecache preset.'),
    'examples' => array(
      'drush imagecache-flush foobar' => dt('Flush the ImageCache preset "foobar".'),
    ),
    'aliases' => array(
      'icf',
    ),
  );
  $items['imagecache-build'] = array(
    'callback' => 'imagecache_drush_preset_build',
    'description' => dt('Build imagecache derivates for all images for a given preset.'),
    'examples' => array(
      'drush imagecache-build foobar' => dt('Build all images for preset "foobar".'),
    ),
    'aliases' => array(
      'icb',
    ),
  );
  return $items;
}