You are here

function photoswipe_drush_command in PhotoSwipe 7.2

Same name and namespace in other branches
  1. 8.2 drush/photoswipe.drush.inc \photoswipe_drush_command()
  2. 8 drush/photoswipe.drush.inc \photoswipe_drush_command()
  3. 3.x drush/photoswipe.drush.inc \photoswipe_drush_command()

Implements hook_drush_command().

File

drush/photoswipe.drush.inc, line 17
Drush integration for PhotoSwipe.

Code

function photoswipe_drush_command() {
  $items = array();

  // the key in the $items array is the name of the command.
  $items['photoswipe-plugin'] = array(
    'callback' => 'drush_photoswipe_plugin',
    'description' => dt('Download and install the PhotoSwipe plugin.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    // No bootstrap.
    'arguments' => array(
      'path' => dt('Optional. A path where to install the PhotoSwipe plugin. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'photoswipeplugin',
    ),
  );
  return $items;
}