--- enabled_modules.module.orig 2010-03-03 07:31:30.000000000 -0600 +++ enabled_modules.module 2010-03-03 07:40:13.000000000 -0600 @@ -249,6 +249,20 @@ function theme_enabled_modules_list($mod } $output .= theme('table', $header, $rows, $attributes, $caption); - + + $output .= '
' . enabled_modules_drush_style_list($modules) . '';
+
return $output;
-}
\ No newline at end of file
+}
+
+/**
+ * Produce a plain text space-separated list of modules ready for use by drush.
+ */
+function enabled_modules_drush_style_list($modules) {
+ $output = '';
+ foreach ($modules as $module) {
+ $output .= $module->name . ' '; // Trailing space at end doesn't matter.
+ }
+ return $output;
+}