I have a module I'm developing that will be used by several sites.
I have a "preview" site on the same server that I would like to be able showcase new features in before promoting to the production sites.
I thought I would be able to have the production version in the drupal/modules directory, and the preview version in the drupal/sites/preview_site/modules directory. I had expected Drupal would load the module from the site's directory and ignore the copy in the global modules directory.
However, when I do this, I get the following error:
PHP Fatal Error: Cannot redeclare
It would seem that Drupal is trying to load both copies!
Is there some way I can get it to only load the local copy?
Is there a better way to achieve this (I expect lots of people will say don't put the preview site on the production server.)