1<?php
2if(!defined('DOKU_INC')) die();
3class action_plugin_chem extends DokuWiki_Action_Plugin {
4    function register(Doku_Event_Handler $controller) {
5        $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ());
6    }
7
8    function handle_toolbar(&$event, $param) {
9        $event->data[] = array (
10                'type' => 'format',
11                'title' => 'Chem plugin',
12                'icon' => '../../plugins/chem/img/pl_chem.png',
13                'open'   => '<chem>',
14                'close'  => '</chem>',
15        );
16
17    }
18}
19