Community Documentation

Obtain a list of modules

Last updated November 8, 2008. Created by Jody Lynn on February 24, 2006.
Edited by Shai, Heine, Uwe Hermann, nedjo. Log in to edit this page.

This snippet lists all modules with associated fields, so you can review their status.

SELECT * FROM `system` WHERE type = 'module';

Most of the rows of the system table will be modules but themes and theme engines are also included. This snippet just filters out the themes and theme engines from the listing.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 4.6.x, Drupal 4.7.x, Drupal 5.x, Drupal 6.x

Reference

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here