tags:

views:

92

answers:

2

Is it safe to move my modules

  • From sites/all/modules/
  • To sites/all/modules/contrib and sites/all/modules/custom

on a production site?

That is, does Drupal automatically detect that the module is still there, but in a new path?

+3  A: 

If you move a module Drupal will see that the old one is broken, and a new one exists. It will not assume the two are the same thing - simply moved.

McAden
thanks, will close if one more person can confirm this
davidosomething
If you disable the module, move it, then re-enable it at the new location you should be fine. It'll probably keep its settings. If you simply yank it out from underneath Drupal it won't like that.
McAden
Step 1: Move the module. Step 2: Clear the cache. If a module stays broken at this point, there is a bug.
Grayside
+2  A: 

Drupal stores the file location in the system table, the info will be rebuilt when you clear the module cache, so if you move the stuff and clear the cache afterwards you should be fine.

googletorp
good call, thanks!
davidosomething

related questions