X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fdocs%2Fextending%2Fclickable_links.pod;h=d52ea59965203da20694769b9a9b34ac0b1fe39e;hb=0cd91e6625848b1ccf72b4b80bd18b3a1c66bbee;hp=91e9eec22c5b35ac11382a3f7945b4c4e2e7ef02;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/docs/extending/clickable_links.pod b/rt/docs/extending/clickable_links.pod index 91e9eec22..d52ea5996 100644 --- a/rt/docs/extending/clickable_links.pod +++ b/rt/docs/extending/clickable_links.pod @@ -23,6 +23,7 @@ after the URL. =item C Detects URLs as C format, but replaces the URL with a link. +This action is enabled by default. =back @@ -89,11 +90,20 @@ add action types. Values are subroutine references which will get called when needed. They should return the modified string. Note that subroutine B HTML. -=item handler +=item handle A subroutine reference; modify it only if you have to. This can be used to add pre- or post-processing around all actions. +=item cache + +An undefined variable that should be replaced with a subroutine +reference. This subroutine will be called twice, once with the arguments +fetch => content_ref and once with store => content_ref. In the fetch +case, if a cached copy is found, return the cached content, otherwise +return a false value. When passed store, you should populate your cache +with the content. The return value is ignored in this case. + =back =head2 Actions' arguments