Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }