function select_translation_drush_command in Select translation 8
Implements hook_drush_command().
File
- drush/
select_translation.drush.inc, line 13 - Drush integration for the select_translation module.
Code
function select_translation_drush_command() {
$items['select-translation'] = [
'description' => dt('Select which translation of a node should be displayed.'),
'arguments' => [
'nid' => dt('The Node ID.'),
],
'options' => [
'mode' => dt('The selection mode, it can be: \'default\', \'original\', or a comma separated list of language codes. See the API doc for more details.'),
],
'required-arguments' => 1,
];
return $items;
}