emjayess
8/15/2012 - 9:50 PM

capture, disable, and re-enable the currently enabled contrib modules in a drupal site

capture, disable, and re-enable the currently enabled contrib modules in a drupal site

drush pml --no-core --type=module --status=enabled --pipe > contrib.modules.txt
# then
drush -y dis `cat contrib.modules.txt`

# later
drush -y en `cat contrib.modules.txt`