Home
The Toolkit for Online Communities
17315 Community Members, 0 members online, 1748 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : Best Practical - A Successful Open Source Company Inspires : One Message

Forum OpenACS Q&A: Re: Best Practical - A Successful Open Source Company Inspires

Collapse
Posted by Lars Pind on
Making a slight change to ad_proc, so you can tack code onto it before or after would be pretty simple. Would let you say something like

ad_extend_proc (name-of-proc) before/after { doc } { code }

Problem of course is with functions which return a value. They'll have a "return" somewhere inside of them, and we'd need to figure out whether we'd let code attached to the end intercept that return value and change it, etc.

Also possible would be ad_replace_proc (name-of-proc) { doc } { code }

/Lars