DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:action_handle_subscribe

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
devel:event:action_handle_subscribe [2014-12-17 22:41]
Klap-in [Passed Data]
devel:event:action_handle_subscribe [2018-05-29 17:08]
andi
Line 19: Line 19:
   * $data['action'] -- Subscription action; core knows ''subscribe'' and ''unsubscribe''.   * $data['action'] -- Subscription action; core knows ''subscribe'' and ''unsubscribe''.
  
 +In the BEFORE event handler you can modify the ''$data'' field and eventually you can use here ''preventDefault()'' to skip execution of DokuWiki's default [[xref>subscription_handle_post()]].
 +
 +The ''$result'' field is always null because this event has no default action that sets this field. The AFTER event handler let you process the ''$data'' field further after the default processing.
 + 
 ===== Plugins handling this event ===== ===== Plugins handling this event =====
  
Line 27: Line 31:
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>ACTION_HANDLE_SUBSCRIBE|Code related to this event]]
   * [[devel:Action Plugins]]   * [[devel:Action Plugins]]
   * [[devel:Events]]   * [[devel:Events]]
devel/event/action_handle_subscribe.txt ยท Last modified: 2018-12-08 14:52 by torpedo