Community & Support

Best practice to customize (patch) an existing module without breaking everything

Hi,

I'm interested in customizing an existing module for my needs.
But as modules are often updated by their authors, and rely on other modules that are updated too, I'm afraid that if I customize a module the wrong way, I won't be able to upgrade Drupal's modules to their latest versions anymore.
There might be no solution for that, but if someone had an advice for what I want to do, I'd be grad to hear it.
Thanks
Hmfireball

Comments

It depends on what you mean

It depends on what you mean by patch. Changing the output should be possible with just theming. Some aspects might be overridden using hooks and in some case you just need to change the code.

Regardless you might contact the module owner and see if they are interested in your changes.