[development] Extending Modules

Nick Lewis nick at nicklewis.org
Fri Jul 7 22:53:53 UTC 2006

Rob Barreca wrote:
> 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. 
Personally, I'm a big fan of the functions in module.inc. See this: 

my guess is module_invoke is the best place for you start.

Nick Lewis
> 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