dokuwiki-hidden-plugin – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <?php
2 /**
3 * action.php for Plugin hidden
4 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
5 * @author Guillaume Turri <guillaume.turri@gmail.com>
6 */
7  
8 if(!defined('DOKU_INC')) die();
9 require_once(DOKU_PLUGIN.'action.php');
10  
11 class action_plugin_hidden extends Dokuwiki_Action_Plugin {
12 function register(Doku_Event_Handler $controller) {
13 $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());
14 }
15  
16 /**
17 * Inserts a toolbar button
18 */
19 function insert_button(&$event, $param) {
20 $event->data[] = array (
21 'type' => 'format',
22 'title' => $this->getLang('button'),
23 'icon' => '../../plugins/hidden/images/hidden.png',
24 'open' => '<hidden>',
25 'close' => '</hidden>',
26 );
27 }
28 }
29