forked from gkrid/dokuwiki-plugin-structgroup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.php
25 lines (22 loc) · 780 Bytes
/
action.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* DokuWiki Plugin structsection (Action Component)
*/
// must be run within Dokuwiki
use dokuwiki\plugin\structgroup8\meta\ApplicationAspectKernel;
if (!defined('DOKU_INC')) die();
class action_plugin_structgroup8 extends DokuWiki_Action_Plugin {
/**
* Registers a callback function for a given event
*
* @param Doku_Event_Handler $controller DokuWiki's event controller object
* @return void
*/
public function register(Doku_Event_Handler $controller) {
$controller->register_hook('PLUGIN_STRUCT_TYPECLASS_INIT', 'BEFORE', $this, 'handle_init');
}
public function handle_init(Doku_Event &$event, $param) {
$event->data['Group'] = 'dokuwiki\\plugin\\structgroup8\\types\\Group';
}
}
// vim:ts=4:sw=4:et: