/** * @see Plugin::register() */ function register($category, $path) { if (parent::register($category, $path)) { if ($this->getEnabled()) { HookRegistry::register('TemplateManager::display', array($this, 'headerCallback')); } return true; } return false; }
/** * @copydoc Plugin::register() */ function register($category, $path) { if (parent::register($category, $path)) { if ($this->getEnabled()) { HookRegistry::register('CatalogBookHandler::download', array($this, 'downloadCallback')); } return true; } return false; }