function search_api_solr_multilingual_drush_command in Search API Multilingual Solr Search 8
Implements hook_drush_command().
File
- ./
search_api_solr_multilingual.drush.inc, line 8
Code
function search_api_solr_multilingual_drush_command() {
$items = array();
$items['search-api-solr-multilingual-delete-and-reinstall-all-field-types'] = array(
'description' => 'Deletes all Solr Field Type and re-installs them from their yml files.',
'examples' => array(
'drush search-api-solr-multilingual-delete-and-reinstall-all-field-types' => dt('Deletes all Solr Field Type and re-installs them from their yml files.'),
'drush sasm-reinstall-ft' => dt('Alias to delete all Solr Field Type and to re-install them from their yml files.'),
),
'aliases' => array(
'sasm-reinstall-ft',
),
);
$items['search-api-solr-multilingual-get-server-config'] = array(
'description' => 'Get Solr config files as zip for a search server.',
'examples' => array(
'drush search-api-solr-multilingual-get-server-config my_solr_server' => dt('Get the config files for @server search server.', array(
'@server' => 'my_solr_server',
)),
'drush sasm-gsc my_solr_server' => dt('Alias to get the config files for @server search server.', array(
'@server' => 'my_solr_server',
)),
),
'arguments' => array(
'server_id' => dt('The numeric ID or machine name of a search server to enable.'),
'file_name' => dt('The file name of the config zip.'),
'solr_version' => dt('The targeted Solr version.'),
),
'aliases' => array(
'sasm-gsc',
),
);
return $items;
}