On Mon, Feb 25, 2008 at 1:06 PM, Yasser González Fernández <yglez(a)uh.cu> wrote:
Hi everyone,
I'm developing an extension and I need to override the behavior of a method
from the Linker class. More precisely, I need to override 'makeImageLink2' to
create custom links for certain images. I searched for a related hook but I
could not find anything. Can this be done from an extension?
Since Skin inherits from Linker, it can be done in a custom skin. In
general, it can't be done with a hook unless there's a hook available
in some appropriate place (the function itself, the caller, a callee,
or whatever). Generally if you want a hook added, you can get one dev
or another to add it to the code, if it's in a place that people will
probably want to use and where there's no other way to reasonably
implement the extension without hacks. Once a dev has added it to the
trunk code, of course, you can hack it into your local copy (whatever
version you have) and not worry about upgrade issues, since it will be
there in the next release.