summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoshe Weitzman2011-07-22 16:11:13 (GMT)
committerMoshe Weitzman2011-07-22 16:11:13 (GMT)
commitdf472637e39ad11ad0d185ab8ceae40889667706 (patch)
tree50c336f32d21806789887283b8b289e98beae783
parent5b1aad6c179fde74c67bdc7fdb98600feb59971b (diff)
Remove Drush5 dependant code.7.x-1.2
-rw-r--r--devel.drush.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel.drush.inc b/devel.drush.inc
index 1794f31..b19817d 100644
--- a/devel.drush.inc
+++ b/devel.drush.inc
@@ -101,7 +101,12 @@ function drush_devel_download() {
* Implements drush_MODULE_post_COMMAND().
*/
function drush_devel_post_pm_enable() {
- $extensions = pm_parse_arguments(func_get_args());
+ $extensions = func_get_args();
+ // Deal with comma delimited extension list.
+ if (strpos($extensions[0], ',') !== FALSE) {
+ $extensions = explode(',', $extensions[0]);
+ }
+
if (in_array('devel', $extensions) && !drush_get_option('skip')) {
drush_devel_download();
}