function views_slideshow_cycle_drush_command in Views Slideshow 8.4
Same name and namespace in other branches
- 7.3 contrib/views_slideshow_cycle/views_slideshow_cycle.drush.inc \views_slideshow_cycle_drush_command()
Implements hook_drush_command().
File
- modules/
views_slideshow_cycle/ views_slideshow_cycle.drush.inc, line 15 - Drush integration for Views Slideshow.
Code
function views_slideshow_cycle_drush_command() {
$items = [];
// The key in the $items array is the name of the command.
$items['views-slideshow-cycle-cycle'] = [
'description' => dt('Download and install the jQuery Cycle library.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => [
'path' => dt('Optional. The path to install the jQuery Cycle library in. If omitted Drush will use the default location.'),
],
'aliases' => [
'dl-cycle',
],
];
$items['views-slideshow-cycle-json2'] = [
'description' => dt('Download and install the JSON2 library.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => [
'path' => dt('Optional. The path to install the JSON2 library in. If omitted Drush will use the default location.'),
],
'aliases' => [
'dl-json2',
],
];
$items['views-slideshow-cycle-hoverintent'] = [
'description' => dt('Download and install the jquery.hoverIntent library.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => [
'path' => dt('Optional. The path to install the jquery.hoverIntent library in. If omitted Drush will use the default location.'),
],
'aliases' => [
'dl-hoverintent',
],
];
$items['views-slideshow-cycle-pause'] = [
'description' => dt('Download and install the jQuery.pause library.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => [
'path' => dt('Optional. The path to install the jQuery.pause library in. If omitted Drush will use the default location.'),
],
'aliases' => [
'dl-pause',
],
];
$items['views-slideshow-cycle-lib'] = [
'description' => dt('Download and install the jQuery Cycle, jQuery hoverIntent and JSON2 libraries.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'aliases' => [
'dl-cycle-lib',
],
];
return $items;
}