3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Describe the reasoning behind dependencies in module dev docs.

This commit is contained in:
Michael Stenta 2022-06-06 07:39:31 -04:00
parent 114f6edfbf
commit 2d2d9b2a24

View file

@ -51,6 +51,12 @@ dependencies:
- log:log
```
In this example, we declare dependencies on the `farm_entity` module (provided
by the Drupal `farm` project, aka farmOS) and the `log` module (a separate
Drupal contrib project), because this module adds a log type. Dependencies will
vary depending on the needs of your module. Refer to the modules included with
farmOS for examples.
Other common files and directories in a module include:
- `[modulename].module` - Optional PHP file for Drupal hook implementations.