DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:action_handle_subscribe

This is an old revision of the document!


ACTION_HANDLE_SUBSCRIBE

Description:
handle, process & generate data for a subscribe request
DefaultAction:
subscription style, target and action are validated and data (time) is generated
Preventable:
yes
Added:
2010-01-20

This event is signaled by act_subscription() in inc/actions.php when receiving a subscribe request, handlers can use it to allow different subscription styles, targets and actions.

Passed Data

  • $data['target']: Target page or namespace ID; Namespaces are denoted by a trailing ':'.
  • $data['style']: Subscription style; core allows 'every' and 'digest' for pages and namespaces, and 'list' for namespaces.
  • $data['action']: Subscription action; core knows 'subscribe' and 'unsubscribe'.

Plugins handling this event

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.

  • none

See also

devel/event/action_handle_subscribe.1268219557.txt.gz · Last modified: 2010-03-10 12:12 by adrianlang

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