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

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 }