You are here

function ckeditor_drush_download in CKEditor - WYSIWYG HTML editor 6

Same name and namespace in other branches
  1. 7 includes/ckeditor.drush.inc \ckeditor_drush_download()

Downloads

1 call to ckeditor_drush_download()
drush_ckeditor_post_enable in includes/ckeditor.drush.inc
Implements drush_MODULE_post_COMMAND().
1 string reference to 'ckeditor_drush_download'
ckeditor_drush_command in includes/ckeditor.drush.inc
Implements hook_drush_command().

File

includes/ckeditor.drush.inc, line 58
CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.

Code

function ckeditor_drush_download() {
  $args = func_get_args();
  if ($args[0]) {
    $path = $args[0];
  }
  else {
    $path = drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries/ckeditor';
  }
  if (drush_shell_exec('svn checkout http://svn.ckeditor.com/CKEditor/releases/stable/ ' . $path)) {
    drush_log(dt('CKEditor was downloaded to @path.', array(
      '@path' => $path,
    )), 'success');
  }
  else {
    drush_log(dt('Drush was unable to download CKEditor to @path.', array(
      '@path' => $path,
    )), 'error');
  }
}