You are here

function highcharttable_drush_command in HighchartTable 7

Implements hook_drush_command().

File

drush/highcharttable.drush.inc, line 17
Drush integration for HighchartTable.

Code

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

  // The key in the $items array is the name of the command.
  $items['dl-highcharts'] = array(
    'callback' => 'highcharttable_drush_download_libraries',
    'description' => dt('Download and install the Highcharts and HighchartTable JS libraries.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => array(
      'path' => dt('Optional path to download Highcharts libraries to. Defaults to "sites/all/libraries"'),
    ),
    'aliases' => array(
      'dl-hc',
    ),
  );
  return $items;
}