Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal 7 Module Dependencies

I am currently developing a loan application site with a number of modules required for the system. I had managed to create 4 modules. To illustrate my question, here is the situation.

  • Module 1
  • Module 2, which depends on Module 1
  • Module 3, which depends on Module 1
  • Module 4, which depends on Module 2

If I enable Module 4 without enabling the other modules, Drupal asks me to install Module 2 and Module 1.

Should the installation order be the following one?

  • Module 1
  • Module 2
  • Module 4
like image 897
Aldee Avatar asked Dec 14 '25 17:12

Aldee


1 Answers

Yes, they will install in that order.

Issue 833192 dealt with this, and was resolved in June of 2010.

You can also check out the source for includes\install.core.inc to verify this. Search for "Always install required modules first" and you will find the code responsible for ensuring that dependencies are installed first.

like image 135
Bryan Herbst Avatar answered Dec 19 '25 03:12

Bryan Herbst



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!