Hello Drupal,

I am using a module that has some add-on/helper modules for it. This module has it's own contribution folder providing a nice place to store these add-on modules: /modules/{module}/contribution

Problem: I didn't start using this nice contribution folder until recent and I'd like to move all of my existing add-on modules to this folder to better organize my modules

Question: Is there a specific method I should follow to relocate modules within the module folder?

I searched and read that moving or renaming module folders is okay but when I moved the add-on module directories into this contribution folder on my local development copy of my website, it threw a bunch of errors, so I moved them back. Do I need to either disable the modules before moving them, or could I find their paths in the database and just manually update it?

Thank you very much in advance!
BigMike

ps. Sorry if this is the wrong forum

Comments

WorldFallz’s picture

you probably just need to clear the cache after moving them. However, before wasting a lot of time doing this you should know that if this is not how the modules are organized in the official project, you'll just have to redo it every single time you update them.