register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); } /** * Inserts a toolbar button */ function insert_button(&$event, $param) { $event->data[] = array ( 'type' => 'format', 'title' => $this->getLang('button'), 'icon' => '../../plugins/gitlabproject/images/gitlab.png', 'open' => ' ' />', ); } }