hooks irc log

"J. Cox" <[email protected]> Thu, 26 Jun 2003 21:48:36 -0400
Newsgroups gmane.comp.cms.xaraya.documentation
Organization PostNuke
Message-ID <[email protected]>
<nobody> first the create / delete / modify hooks.
<nobody> they are basically API hooks that are doing something when an item
is created / deleted / modified.
<nobody> it can be anything, but those are used like triggers.
<nobody> make sense?
<garrett> yep - menulinks was something we tradded messages on
<nobody> right.
<garrett> as hook candidates
<nobody> next type of hooks are the gui hooks
<nobody> these are the beasts that are great to use, but hard to understand
how they work:)
<nobody> basically any GUI hook is just loading a function in another
function.
<nobody> example would be the comments.
<nobody> we load the comments anywhere where the display hooks are called.
<garrett> right, i figure a hook is a black box for me to use in my module
<nobody> right:)
<nobody> next type of hooks are the transform hooks.
<nobody> my favorites:)
<nobody> they basically just do a regex on output when called.
<nobody> example would be the autolinks / wiki / censor modules
<nobody> then there are the specialty hooks that are used whenever you need
a display function, but don't want to call a display hook.
<nobody> search module is just taking the search hook in and displaying it
out.
<nobody> same with the user menu.
<garrett> those are not considered GUI hooks?
<nobody> yeah, they are:)
<nobody> display hooks are the generic GUI's
<nobody> then search, etc are specialized GUI's.
<nobody> do the same thing, just only used in certain instances.