1<?php
2
3if (!defined('DOKU_INC')) {
4	die();
5}
6
7class action_plugin_tablecalc extends DokuWiki_Action_Plugin {
8
9	public function register(Doku_Event_Handler $controller) {
10		$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,
11                                   '_loadtablecalc');
12	}
13
14	public function _loadtablecalc(Doku_Event $event, $param) {
15		$event->data['script'][] = array(
16			'type'    => 'text/javascript',
17			'charset' => 'utf-8',
18			'_data'   => '',
19			'src' => DOKU_BASE."lib/plugins/tablecalc/script.js");
20
21	}
22}
23?>