function stringoverrides_drush_command in String Overrides 7
Implements hook_drush_command().
File
- ./
stringoverrides.drush.inc, line 11 - Drush interface for String Overrides.
Code
function stringoverrides_drush_command() {
$items['stringoverrides-list'] = array(
'description' => 'List all the string overrides associated with the site.',
'options' => array(
'language' => 'The language for the available overrides. Defaults to "en".',
),
'examples' => array(
'drush stringoverrides-list' => 'Lists all string overrides on the site.',
'drush stringoverrides-list --language fr' => 'Lists all French string overrides on the site.',
),
'core' => array(
7,
8,
),
);
$items['stringoverrides-set'] = array(
'description' => 'Set a string override for the site.',
'arguments' => array(
'original' => 'The original source text to override. Defaults to "en".',
'replacement' => 'The replacement text.',
),
'options' => array(
'language' => 'The language for the override. Defaults to "en".',
'context' => 'The context for the desired override. Defaults to "".',
),
'core' => array(
7,
8,
),
);
$items['stringoverrides-remove'] = array(
'description' => 'Removes a string override from the system.',
'arguments' => array(
'original' => 'The original source text to override. Defaults to "en".',
),
'options' => array(
'language' => 'The language for the override. Defaults to "en".',
'context' => 'The context for the desired override. Defaults to "".',
),
'core' => array(
7,
8,
),
);
$items['stringoverrides-enable'] = array(
'description' => 'Enables the given string override.',
'arguments' => array(
'original' => 'The original source text of the override.',
),
'options' => array(
'language' => 'The language for the override. Defaults to "en".',
'context' => 'The context for the desired override. Defaults to "".',
),
'core' => array(
7,
8,
),
);
$items['stringoverrides-disable'] = array(
'description' => 'Disables the given String Override.',
'arguments' => array(
'original' => 'The original source text of the override.',
),
'options' => array(
'language' => 'The language for the override. Defaults to "en".',
'context' => 'The context for the desired override. Defaults to "".',
),
'core' => array(
7,
8,
),
);
return $items;
}