3 class HelloPlugin
extends VGPlugin
5 function __construct() {
7 if (isset($conf['hello'])) {
8 $this->register_action('hello');
9 $this->register_hook('pagenav');
13 function action($action) {
14 $this->output("Hello world!");
17 function hook($type) {
18 if ($type == 'pagenav') {
19 $this->output(" | <a href=\"". makelink(array('a' => 'hello')) ."\">Hello</a> ");