By gupta.sandeepcs on
Hi All..
I have a question. I am developing my website in Drupal. I have used several core and contributed modules. Some of the contributed modules i have costomized.. what i want to know is if there is an update for that particular module is available and if i want to upgrade that module.. all my customize settings for that module will be lost? or is there any way using which i can upgrade my module as well as my customize settings for that particular module remains intact?
Plese reply soon..its quite urgent
Comments
reply guys
reply guys
hey guys please reply
hey guys please reply
_
wow-- please understand everyone here is a volunteer and don't bump your post so frequently.
Try same customization code in updated modules.
If you just simply drop the new modules into your modules folder, they will overwrite your modified files in the previous versions.
You did not provide enough information for people to reply to you. What modules? Do you mean you customized them in the database? In that case, modules usually keep their settings after an update. Or did you modify the files in the modules? In that case, see if you can simply make the same modifications (copy and paste) in the new files. It may work, but no guarantees.
People will be happy to help you out if you provide a concise, but specific description of your problem. There are thousands of users with questions in the community, when someone browses through posts, if he or she cannot exactly see what the question is, they skip the post.
many thanks for your
many thanks for your reply...what i meant was modification in the module code not in the database..suppose i have modified some file of the module..now if i upgrade it, will the modification be lost...i think it will be lost so what i want to know is there any procedure which can upgrade the module as well as the modifications still left
_
Ther is no such procedure-- best practice is to not modify core and contributed modules in the first place. Drupal is architected in such a way that virtually everything should be able to be overridden without modifying the original code. If you find yourself in a situation where that is not true, then a patch to the original code in probably in order.
Module Upgrade
Suppose i have made some changes in 2-3 files of a module and a module update is available on the internet. Now i need to upgrade that module. Now if i upgrade it then the changes made by me in those 2-3 files of the module will be lost. So what i want to know is ---
IS there any way by which i can upgrade as well as not lose the modified files?..means does drupal release some patches of the upgraded module or it release the whole new module?
Almost without exception is a fully updated module.
If the module has updates, they usually release a whole new version of it, as opposed to just one small patch. What you should do is simply make the same modifications via copy and paste in the new version of the module. Keep a logfile of all your mods, so you can replicate them in new version of the module. The official module upgrades will not take your mods into consideration.
thanks dear! By the way does
thanks dear!
By the way does drupal releases some patches too?
suppose a module has some bug so after fixing that bug, will drupal release the new update or a patch of that module?
Hi Sandeep, All of your
Hi Sandeep,
All of your questions are on drupal.org if you search for them, please make a desk research first before you ask questions. Thanks.
And yes when patches are committed they are committed to the .dev version of a module.
If the module is fully enough tested the module gets a number, alpha1, beta1, 1.2 etc...
Greetings and happy christmas and a good new year!
mARTIJN