You are here

function jq_maphilight_drush_command in jQuery Map Hilight 7

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.

Return value

An associative array describing your command(s).

File

drush/jq_maphilight.drush.inc, line 35
drush integration for maphilight, based on colorbox.drush.inc.

Code

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

  // the key in the $items array is the name of the command.
  $items['maphilight-plugin'] = array(
    'callback' => 'drush_jq_maphilight_download',
    'description' => dt("Downloads the Maphilight plugin."),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    // No bootstrap.
    'arguments' => array(
      'path' => dt('Optional. A path where to install the Maphilight plugin. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'maphilightplugin',
    ),
  );
  return $items;
}