Hook and Plugin Question
Posted: Sun Feb 24, 2013 7:07 pm
I have utilized many hooks for my plugin, but can't seem to grasp what should be a simple concept...
Can we create a hook that simply replaces one "if" statement and then returns directly to the original code and follows the plugin hook's "if" result rather than the original?
Previously all my hooks have been at the beginning or end of a code block and do not need to pass that kind of logic info back to the existing code...
The only way I am seeing something like that working is to actually pass a value back from the plugin and then have to modify the original "if" statement in accordance with the new value...is there a better way that I don't know about? Currently, I keep having periodically patch one line in the downloaded svn main file to make OD behave the way I want without replacing that entire block of code in my plugin...
Thanks.
Can we create a hook that simply replaces one "if" statement and then returns directly to the original code and follows the plugin hook's "if" result rather than the original?
Previously all my hooks have been at the beginning or end of a code block and do not need to pass that kind of logic info back to the existing code...
The only way I am seeing something like that working is to actually pass a value back from the plugin and then have to modify the original "if" statement in accordance with the new value...is there a better way that I don't know about? Currently, I keep having periodically patch one line in the downloaded svn main file to make OD behave the way I want without replacing that entire block of code in my plugin...
Thanks.