I'm debugging a Drupal 7 system I didn't setup, and I'm trying to understand how Drupal loads its modules.
This system appears to have modules nested within one other -- here's one example.
modules/custom/modulename/modulename.info modules/custom/modulename/modulename.install modules/custom/modulename/modulename.module modules/custom/modulename/modulename_statistics/modulename_statistics.drush.inc modules/custom/modulename/modulename_statistics/modulename_statistics.inc modules/custom/modulename/modulename_statistics/modulename_statistics.info modules/custom/modulename/modulename_statistics/modulename_statistics.module
It appears there's one module named
modulename, and inside this module there's another named
Is this a "legal/normal" setup? Does nesting one module within another confer any special features between the two modules? Where in the drupal source code are modules searched for/loaded? Is there any canonical piece of documentation that covers how module loading works? (my googling didn't turn up a lot)
(experienced software engineer here, but only passingly familiar with Drupal)