Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Create simple modules with Drush.
Usage:
drush modulesmith-forge modulename
drush msf modulename sites/all/modules/custom
By default, it will try to put it in the following paths:
sites/all/modules/custom
sites/all/modules
profiles/INSTALLPROFILE/modules/custom
profiles/INSTALLPROFILE/modules
Install
Via drush:
drush dl drush_modulesmith
Manually:
cd ~/.drush/
git clone git@github.com:robballou/drush_modulesmith.git
Why this command?
You can use module_builder to build modules. It's a great tool and fully featured. module_builder normally installs into your project though (but it doesn't have to). And it does quite a lot (which is good ... unless you need something simple). This just adds a module skeleton for you and you can then add your code as needed.
Project information
- Created by rballou on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.0
released 21 April 2014
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 2 Jul 2014 at 15:33 UTC