Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Cms 2.1.4 Update released for Drupal core (2.1.4)! Release: Facets 3.0.6 Minor update available for module facets (3.0.6). Release: Facets 3.0.5 Minor update available for module facets (3.0.5). Release: Pantheon Advanced Page Cache 2.4.1 Minor update available for module pantheon_advanced_page_cache (2.4.1). Release: Flag 5.1.0 Minor update available for module flag (5.1.0). Release: Drupal CMS Helper 2.1.4 Minor update available for module drupal_cms_helper (2.1.4). Release: Analyze AI Content Security Audit 1.3.1 Minor update available for module analyze_ai_content_security_audit (1.3.1). Release: Analyze AI Content Marketing Audit 1.3.1 Minor update available for module analyze_ai_content_marketing_audit (1.3.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: ЮKassa (YooMoney) для Drupal v7 2.6.1 Module yoomoney_api updated after 7 months of inactivity (2.6.1).

This project offers Drush commands to help upgrade Drupal 7 modules to modern Drupal versions. It can analyze module code, identify necessary updates, and, where feasible, automatically convert the code.

Drupal Module Upgrader provides drush commands to scan the source of a Drupal 7 module, flags any code that requires updating to modern Drupal, points off to any relevant API change notices, and (where possible) will actually attempt to convert the Drupal 7 code automatically to modern Drupal!

The module is kept on life support to aid Drupal 7 upgraders, but further development is not planned.

Installation

  • The "minimum-stability" option in the site's composer.json file must be set to "dev".
  • Install the module like you would any other Drupal module, it will bring along the needed dependencies.

Usage

  1. Place the Drupal 7 module you wish to port into your modern Drupal site's /modules directory.
  2. To scan code and get a report of code that needs updating and how, run the following inside the modern Drupal root directory:
    drush dmu-analyze MODULE_NAME
    

    This will export a report showing any relevant change notices where you can
    read more.

  3. To attempt to upgrade your Drupal 7 module's code to modern Drupal automatically,
    run the following inside the modern Drupal root directory:
    drush dmu-upgrade MODULE_NAME
    

    The script will output a few lines as it attempts various conversions. Go into your modules/MODULE_NAME directory and check out all of your new YAML files and such. ;)

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Mar 2026
Latest release
5 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0-alpha2 Pre-release 10–11 Mar 5, 2026
2.0.0-alpha1 Pre-release 8–9 Mar 5, 2026
2.x-dev Dev 10–11 Mar 5, 2026