[development] Activate/Deactivate hooks for modules

Kieran Lal kieran at civicspacelabs.org
Sun Jan 15 18:28:13 UTC 2006


On Jan 15, 2006, at 9:47 AM, David Reed wrote:

> I find my self longing for Activate and Deactivate hooks for  
> modules.  These hooks would run only when the module is activated  
> or deactivated in the admin/modules form This would give module  
> developers a convenient place to run on-time setup code (e.g.  
> database setup) and a place to do cleanup once their module was  
> deactivated.
>
>
> If there's interest I could create a patch for discussion.  Is  
> there another easy way to accomplish these types of setup and  
> cleanup tasks?

You probably want to talk to Vlado about his dependency system.

http://dikini.net/taxonomy/term/13

svn://mec0026.engi.cf.ac.uk/drpkg

I know his looking for folks to help build this into the grand  
install vision.

Kieran
>
>



More information about the development mailing list