function pi_lib_drush_command in International Phone 3.x
Implements hook_drush_command().
File
- drush/
pi_lib.drush.inc, line 18 - Drush integration for phone_international.
Code
function pi_lib_drush_command() {
$items = [];
// The key in the $items array is the name of the command.
// No bootstrap.
$items['pi-plugin'] = [
'callback' => 'drush_pi_lib_plugin',
'description' => dt('Download and install the Phone International(intl-tel-input) plugin.'),
'bootstrap' => DRUSH_BOOTSTRAP_NONE,
'arguments' => [
'path' => dt('Optional. A path where to install the Phone International(intl-tel-input) plugin. If omitted Drush will use the default location.'),
],
'aliases' => [
'piplugin',
],
];
return $items;
}