You can always query the system table.  Look for the status field to tell you whether it's enable.


From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Gastón Pablo Pérez
Sent: Monday, January 25, 2010 10:25 AM
To: Drupal support list (drupal.org); Drupal Develompent List (drupal.org)
Subject: [support] Consulting about installed modules

Hi:

I need to know if exists any way (maybe through drush) in which i will be able to obtain the list of all modules installed on a particular drupal site. I would like to create an script to install all modules that i have in a site to another with a clean drupal installation. I'm using drupal 6.

thanks in advance

Gastón Pablo Perez
Email: gpperez@gmail.com
Web: http://cv.gpperez.com.ar