function drush_badbehavior_dl in Bad Behavior 7.2
Same name and namespace in other branches
- 6.2 badbehavior.drush.inc \drush_badbehavior_dl()
- 6 badbehavior.drush.inc \drush_badbehavior_dl()
Download the BadBehavior library from SVN.
1 call to drush_badbehavior_dl()
- drush_badbehavior_post_pm_enable in ./
badbehavior.drush.inc - Implements drush_MODULE_post_COMMAND().
File
- ./
badbehavior.drush.inc, line 24 - Drush integration for the badbehavior module.
Code
function drush_badbehavior_dl() {
$path = drush_get_option('path', drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries/bad-behavior');
if (drush_shell_exec('svn checkout http://svn.wp-plugins.org/bad-behavior/branches/2.2/ ' . $path)) {
drush_log(dt('BadBehavior has been downloaded to @path.', array(
'@path' => $path,
)), 'success');
}
else {
drush_log(dt('Drush was unable to download the BadBehavior to @path.', array(
'@path' => $path,
)), 'error');
}
}