function form_styler_drush_command in jQuery form styler 7
Same name and namespace in other branches
- 7.2 drush/form_styler.drush.inc \form_styler_drush_command()
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.
File
- drush/
form_styler.drush.inc, line 27 - Drush integration for form_styler.
Code
function form_styler_drush_command() {
$items = array();
// The key in the $items array is the name of the command.
$items['form-styler-plugin'] = array(
'callback' => 'form_styler_plugin',
'description' => dt('Download and install the Form styler plugin.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'arguments' => array(
'path' => dt('Optional. A path where to install the form styler plugin. If omitted Drush will use the default location.'),
),
'aliases' => array(
'fsplugin',
),
);
return $items;
}