Same name and namespace in other branches
- 7.x-1.x drush/colorbox.drush.inc \colorbox_drush_command() 1 comment
- 7.x-2.x drush/colorbox.drush.inc \colorbox_drush_command() 1 comment
Implements hook_drush_command().
File
-
drush/
colorbox.drush.inc, line 19
Code
function colorbox_drush_command() {
$items = [];
// The key in the $items array is the name of the command.
$items['colorbox-plugin'] = [
'callback' => 'drush_colorbox_plugin',
'description' => dt('Download and install the Colorbox plugin.'),
// No bootstrap.
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => [
'path' => dt('Optional. A path where to install the Colorbox plugin. If omitted Drush will use the default location.'),
],
'aliases' => [
'colorboxplugin',
],
];
return $items;
}