This project is not covered by Drupal’s security advisory policy.
Rename Module is a Drupal module that provides a Drush command to rename custom Drupal modules. It handles the renaming of directories, files, and occurrences within files, ensuring a smooth transition from the old module name to the new one.
Features
- Locate Module: Finds the specified module within the Drupal filesystem.
- Rename Directory: Renames the directory containing the module.
- Rename Files: Renames all files within the module directory that start with the old module name.
- Replace Occurrences: Safely replaces all occurrences of the old module name within the files.
Installation
- Download the module to your custom modules directory.
- Enable the module using Drush:
drush en [module_name]. - Clear the cache:
drush cr.
Usage
Use the Drush command to rename a module:
drush rename-module:rename [old_name] [new_name]Requirements
- Drupal 9 or 10
- Drush
Similar modules
Rename modules (7.x) Drupal 7 module renamer, I would love to merge these projects and close this one (rename_module) down.
Contributions are welcome!
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.- Project categories: Developer tools
- Ecosystem: Drush
- Created by thursday_bw on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
