1<?php
2/**
3 * DokuWiki Plugin oauth (Action Component)
4 *
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6 * @author  Michael Große <grosse@cosmocode.de>
7 */
8
9// must be run within Dokuwiki
10if(!defined('DOKU_INC')) die();
11
12class action_plugin_newsticker extends DokuWiki_Action_Plugin {
13
14    function register(Doku_Event_Handler $controller) {
15        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER',  $this, 'jsinfo_addConf');
16    }
17    function jsinfo_addConf(&$event, $param) {
18        global $JSINFO;
19        $JSINFO['plugin']['newsticker']['duration'] = $this->getConf('duration');
20    }
21}
22