You are here

function addtohomescreen_drush_command in Add to homescreen 7

Same name and namespace in other branches
  1. 8 addtohomescreen.drush.inc \addtohomescreen_drush_command()

Implements hook_drush_command().

File

./addtohomescreen.drush.inc, line 17
Drush integration for addtohomescreen.

Code

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

  // The key in the $items array is the name of the command.
  $items['addtohomescreen'] = array(
    'callback' => 'drush_addtohomescreen',
    'description' => dt('Download and install the Add to homescreen library.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => array(
      'path' => dt('Optional. A path where to install the Add to homescreen library. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'addtohomescreen-library',
    ),
  );
  return $items;
}