From fce88a29307d18870dd534a875d850e0b57b78d0 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Thu, 23 Feb 2023 16:11:03 +0300 Subject: [PATCH] #68 Dropped invalid hook handler --- PLNPlugin.inc.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/PLNPlugin.inc.php b/PLNPlugin.inc.php index b228899..10cf7c8 100644 --- a/PLNPlugin.inc.php +++ b/PLNPlugin.inc.php @@ -90,7 +90,6 @@ public function register($category, $path, $mainContextId = null) { $this->import('classes.DepositPackage'); HookRegistry::register('PluginRegistry::loadCategory', array($this, 'callbackLoadCategory')); - HookRegistry::register('JournalDAO::deleteJournalById', array($this, 'callbackDeleteJournalById')); HookRegistry::register('LoadHandler', array($this, 'callbackLoadHandler')); HookRegistry::register('NotificationManager::getNotificationMessage', array($this, 'callbackNotificationMessage')); HookRegistry::register('LoadComponentHandler', array($this, 'setupComponentHandlers')); @@ -272,21 +271,6 @@ public function callbackLoadCategory($hookName, $args) { return false; } - /** - * Delete all plug-in data for a journal when the journal is deleted - * @param string $hookName (JournalDAO::deleteJournalById) - * @param array $args (JournalDAO, journalId) - * @return boolean false to continue processing subsequent hooks - */ - public function callbackDeleteJournalById($hookName, $params) { - $journalId = $params[1]; - $depositDao = DAORegistry::getDAO('DepositDAO'); - $depositDao->deleteByJournalId($journalId); - $depositObjectDao = DAORegistry::getDAO('DepositObjectDAO'); - $depositObjectDao->deleteByJournalId($journalId); - return false; - } - /** * @copydoc AcronPlugin::parseCronTab() */