New 'libraries' folder in root instalation directory

This commit is contained in:
Manuel Cillero 2017-08-08 18:24:12 +02:00
parent 05b6a91b0c
commit 006992b900
2267 changed files with 50 additions and 65 deletions

View file

@ -46,7 +46,7 @@ function ckeditor_drush_command() {
'callback' => 'ckeditor_drush_download',
'description' => dt('Downloads the required CKEditor library from svn.ckeditor.com.'),
'arguments' => array(
'path' => dt('Optional. The path to the download folder. If omitted, Drush will use the default location (<code>sites/all/libraries/ckeditor</code>).'),
'path' => dt('Optional. The path to the download folder. If omitted, Drush will use the default location (<code>libraries/ckeditor</code>).'),
),
);
return $items;
@ -61,7 +61,7 @@ function ckeditor_drush_download() {
$path = $args[0];
}
else {
$path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries/ckeditor';
$path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/libraries/ckeditor';
}
if (drush_shell_exec('svn checkout http://svn.ckeditor.com/CKEditor/releases/stable/ ' . $path)) {