Last Updated: February 25, 2016
· xxronis

Drupal Module Builder - drush plugin

For any Drupal dev, creating the scaffolding for a new module can be a repeated and time-waisting procedure.Module builder as a drush plugin offers a really cool and quick way to create your module files or even type in for you the first hooks like:

drush mb my_module menu cron form_alter

This will create module code and files like .info file with hookmenu, hookcron, hookformalter straight from Drupal API, or you could be more specific like

drush mb my_module menu cron --write --name="My module" --dep="forum views"

This would add a dependency to the module and alter is name in the .info file.

More about Drush