You are here

function colorbox_drush_command in Colorbox 7.2

Same name and namespace in other branches
  1. 8 drush/colorbox.drush.inc \colorbox_drush_command()
  2. 6 drush/colorbox.drush.inc \colorbox_drush_command()
  3. 7 drush/colorbox.drush.inc \colorbox_drush_command()

Implements hook_drush_command().

In this hook, you specify which commands your drush module makes available, what it does and description.

Notice how this structure closely resembles how you define menu hooks.

See `drush topic docs-commands` for a list of recognized keys.

@codingStandardsIgnoreLine

Return value

array An associative array describing your command(s).

File

drush/colorbox.drush.inc, line 30
Drush integration for colorbox.

Code

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

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