Project

General

Profile

Need help on adding/calling hook method

Added by khanappa boragouda almost 13 years ago

Hi ,

Need help on call_hook. In the Issues_controller, there is a call 'call_hook' ( call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue }) ) and by making use of that call, I want to do some stuff (call my own function) before creating an issue and I don't want to modify any core code. I want to put my stuff outside the core code (may be in the form of lib/plugin) and make a function call (defined in my plugin/lib) by using call_hook.

Pleas let me know how to do this.

Thanks in advance,