From 7f10ecb7d30a8a3d4eb0130b85a2da2577ff08ca Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 10 Feb 2020 07:27:29 +0000 Subject: [PATCH] Add D7 usage instructions --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6a2a54..8d614d4 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,11 @@ composer global require opdavies/drupal-module-generator ## Usage -TODO +### Drupal 7 + +```bash +dmg generate:drupal-7-module {name} +``` + +Generated Drupal 7 modules contain the appropriately named `.info` and `.module` files, +as well as a test case located in `src/Tests/Functional` which [is loaded automatically](https://www.oliverdavies.uk/articles/psr4-autoloading-test-cases-drupal-7).