This module imports content from Drupal 7 sites into Drupal 11 by exporting Drupal 7 content as XML files and then importing those files. It preserves entity IDs, automatically creates content types and fields, and handles taxonomy, files, menus, and URL aliases.
Minimally maintained. This module was built for one specific set of Drupal 7 sites and is no longer under active development. No new features are planned. Bug fixes may be committed if they arrive as a tested merge request. If you want to take the project over, open an issue.
MySQL/MariaDB only. Both the D7 source and the D11 target must use MySQL or MariaDB.
Imports content from a Drupal 7 site straight into Drupal 11, without the D7 → D8 → D9 → D10 → D11 migration path. You run the included export script on the D7 site, which writes XML files. Then you import those files on the D11 site with Drush.
What it imports
- Vocabularies and taxonomy terms, with hierarchy, keeping term IDs
- Content types and fields, created automatically from the exported data
- Nodes, keeping node IDs
- Files, keeping file IDs, with optional copying from the D7 files folder
- URL aliases
- Menus and menu links (D7 core menus map to their D11 names)
- Webforms (Webform 7.x-4.x), with the optional
d7_import_webformsubmodule
Not imported: users and revisions. Some complex field types need manual work. Content in D7's PHP filter format is imported as Full HTML with all PHP removed.
Getting started
composer require drupal/d7_import drush en d7_import
On the D7 site, copy d7_export_script/export_content.php to the site root and run drush -l yoursite.com php-script export_content.php. On the D11 site, run drush d7-import:all /path/to/export/ --source-files=/path/to/d7/files.
There's also an import form at /admin/content/d7-import for small sites. It needs the restricted Run D7 content import permission. Use Drush for anything large, because the form can time out.
Field type mapping, troubleshooting and every Drush command are in the README.
Ask your assistant about Simple Upgrade from Drupal 7
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- file Drupal core
- node Drupal core
- path_alias Drupal core
- taxonomy Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.2.2 | Stable | 11 | Oct 28, 2026 | ||
| 1.2.1 | Stable | 11 | Oct 28, 2026 | ||
| 1.2.0 | Stable | 11 | Apr 22, 2026 | ||
| 1.2.x-dev | Dev | 11 | Apr 22, 2026 | ||
| 1.1.2 | Stable | 11 | Apr 21, 2026 | ||
| 1.1.1 | Stable | 11 | Apr 21, 2026 | ||
| 1.1.0 | Stable | 11 | Apr 21, 2026 | ||
| 1.1.x-dev | Dev | 11 | Apr 21, 2026 | ||
| 1.0.2 | Stable | 10–11 | Apr 19, 2026 | ||
| 1.0.1 | Stable | 10–11 | Jan 25, 2026 |