DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:action_headers_send

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:event:action_headers_send [2008-10-26 12:28] andidevel:event:action_headers_send [2018-12-08 14:53] (current) – doc updated according to issue #2615 torpedo
Line 12: Line 12:
  
 ===== Passed Data ===== ===== Passed Data =====
 +The passed [[xref>Doku_Event]] object has the fields: ''$data'' and ''$result''.
  
-$data is an array of header strings. There is one DokuWiki header ''%%'Content-Type: text/html; charset=utf-8'%%''. Handlers of this event can add/modify/delete the headers in the event data. The event data must remain an array, even if emptied.+The ''$data'' field is an array of header strings. This array has default one entry: 
 +  * the DokuWiki header ''%%'Content-Type: text/html; charset=utf-8'%%''
  
-===== Plugins handling this event =====+The BEFORE handler of this event can add/modify/delete the headers in the ''$data'' field. The event data must remain an array, even if emptied. The default action [[xref>act_sendheaders()]] will output the headers, but this can be prevented by ''preventDefault()''.
  
-The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.+The ''$result'' field is always null, because the default action don't set this field. The AFTER event handlers comes (default) after outputting the headers.
  
-  * FIXME 
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>ACTION_HEADERS_SEND|Code related to this event]] used in any DokuWiki's files, plugins and templates
   * [[devel:Action Plugins]]   * [[devel:Action Plugins]]
   * [[devel:Events]]   * [[devel:Events]]
devel/event/action_headers_send.1225020487.txt.gz · Last modified: 2009-09-11 18:38 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki