function download_count_drush_command in Download Count 8
Same name and namespace in other branches
- 7.3 includes/download_count.drush.inc \download_count_drush_command()
Implements hook_drush_command().
File
- includes/
download_count.drush.inc, line 25 - Drush commands for download_count.
Code
function download_count_drush_command() {
$items['sparkline-plugin'] = [
'description' => dt('Download the jquery.sparkline plugin.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'callback' => 'download_count_sparkline_download',
'aliases' => [
'sparklines',
],
'arguments' => [
'version' => dt('Optional: the version of the sparkline plugin to download (currently the default is ' . SPARKLINE_VERSION . ')'),
'path' => dt('Optional: a path to install the sparkline plugin. If omitted drush will use /sites/all/libraries/jquery.sparkline.'),
],
];
return $items;
}