[development] Extending Modules

Rob Barreca rob at electronicinsight.com
Fri Jul 7 19:38:37 UTC 2006

A great place to start learning about piggybacking on other modules is 
the hook_nodeapi and hook_form_alter hooks.  Those should allow you to 
do most of what you want.

But if the functionality belongs in the module, submit a patch and help 
that module become better.

Good luck,

Rob Roy Barreca
Electronic Insight Corporation
12526 High Bluff Drive, Suite 300
San Diego, CA 92130
rob at electronicinsight.com

Benjamin Maurice wrote:
> I very much expected to find "best practices" for extending modules, 
> but I haven't.
> Does anyone have any pointers to resources or advice?
> It's great that Drupal itself is modular, but if I want to add a 
> little something to a module that already does 90% of what I want, it 
> seems there ought to be a standard way to do this without forking it.
> Wrapping a module I can imagine how to do, and overriding or adding 
> functions as needed, but it seems there could be a way to do this 
> without having to define every function and pass it through.  At least 
> I hope to find recommendations on how to do this.
> Thanks for any help,
> Ben Melançon
> of
> Agaric Design
> http://agaricdesign.com/

More information about the development mailing list