development1Add my vote for this tag create new tag
, view all tags

Existing Plugin Hooks in latest Alpha

$VERSION Hook parameters Description
1.000 InitPlugin $topic, $web, $user, $installWeb Called once at startup as the plugin system is initialised
1.010 RegistrationHandler $webName, $wikiName, $loginName Called from register script. Can be used for sending cookies, (UserCookiePlugin) or any other SessionPlugin processing
1.000 CommonTagsHandler $text, $topic, $web Called once per line of the text
1.000 StartRenderingHandler $text, $topic, $web, $meta Called just prior to the mainloop
1.000 OutsidePREHandler $text, $web Called once per line, before any changes - as long as outside PRE & verbatim
1.000 InsidePREHandler $text, $web Called after closing any lists when in a PRE or VERBATIM area, before any other changes
1.000 EndRenderingHandler $text, $topic, $web Called after almost all modifications to a topic - ie this is the result of getRenderedVersion. <nop> tags are removed after this
1.010 BeforeEditHandler $text, $topic, $web Called when the text is edited to allow pre-processing of edited text. See TranslateTagPlugin
1.010 AfterEditHandler $text, $topic, $web Called when the text is previewed (or checkpoint-saved) to allow post-processing of edited text
1.010 BeforeSaveHandler $text, $topic, $web BeforeSaveHandler
1.010 WriteHeaderHandler $query Called just prior to writing header. Returns a single result: a string containing HTTP headers, delimited by CR/LF and with no blank lines. If returns FALSE, the default header gets written. Plugin generated headers may be modified by core code before they are output, to fix bugs or manage caching. Plugins should no longer write headers to standard output.
1.010 RedirectCgiQueryHandler $query, $url Generic Hook into the redirect functionality.
1.010 GetSessionValueHandler $key Called to get a session value... Used perhaps in a plugin..?
1.010 SetSessionValueHandler $key, $value Called to set a session value... Used perhaps in a plugin..?
1.023 BeforeAttachmentSaveHandler \%attachAttributes, $topic, $web Called before an attachment is saved
1.023 AfterAttachmentSaveHandler \%attachAttributes, $topic, $web Called after an attachment is saved
????? BeforeCommonTagsHandler $text, $topic, $web Callback at the very beginning of the common tags handler; needed for Plugin that caches variables


-- MartinCleaver - 12,18 May 2004

Note that InstalledPlugins has a %!FAILEDPLUGINS% tag that will show defined hooks and handlers.

-- MartinCleaver - 05 Nov 2004

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-06-16 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.