Drupal is a popular content management system (CMS) that allows users to create and manage websites with ease. One of the key features of Drupal is its ability to extend functionality through modules. These modules are pre-packaged pieces of code that add new features and enhance the functionality of a Drupal site.
If you are a Drupal 7 user, you may be wondering how to get a list of all the modules installed on your site. In this article, we will explore the different ways to get the modules list in Drupal 7.
1. Using the Modules page
The easiest and most straightforward way to get a list of all the modules installed on your Drupal 7 site is through the Modules page. To access this page, go to the "Modules" menu under the "Administer" section of your Drupal dashboard.
On this page, you will see a list of all the modules that are currently installed on your site. The modules are grouped into categories, making it easier to find the ones you are looking for. You can also use the search bar at the top of the page to quickly find a specific module.
2. Using Drush
Drush is a command-line tool that allows you to manage your Drupal site from the terminal. It is a powerful tool that can help you perform various tasks, including getting a list of all the modules installed on your site.
To get a list of modules using Drush, open your terminal and navigate to the root directory of your Drupal site. Then, type the following command:
drush pm-list --type=module
This will display a list of all the installed modules along with their status (enabled or disabled) and version number.
3. Using the Database
If you have access to your Drupal site's database, you can also get a list of modules by querying the "system" table. This table contains information about all the modules installed on your site.
To get the list, run the following SQL query on your database:
SELECT name, status, filename FROM system WHERE type = 'module'
This will return a list of all the modules, along with their status (1 for enabled, 0 for disabled) and file name.
4. Using a contributed module
There is also a contributed module called "Module List" that can help you get a list of all the modules installed on your Drupal site. Once you install and enable this module, you can access the list by going to the "Reports > Module List" page on your Drupal dashboard.
The module also allows you to export the list as a CSV file, making it easier to analyze and manage your modules.
In conclusion, getting a list of modules in Drupal 7 is a simple task that can be done in various ways. Whether you prefer using the built-in modules page, Drush, database query, or a contributed module, you can easily get the information you need to manage your site's modules effectively. With the right tools and knowledge, managing your Drupal site and its modules can be a breeze.