From df763eb8b34b9823511d93ec078d4644d3e6ff64 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 14 Oct 2024 09:35:41 +0200 Subject: Add hook entries_favorite (#6880) Called when entries are starred or unstarred --- app/Models/EntryDAO.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index e22650f0d..23874a8e1 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -362,6 +362,7 @@ SQL; $values = array_merge($values, $ids); $stm = $this->pdo->prepare($sql); if ($stm !== false && $stm->execute($values)) { + Minz_ExtensionManager::callHook('entries_favorite', $ids, $is_favorite); return $stm->rowCount(); } else { $info = $stm === false ? $this->pdo->errorInfo() : $stm->errorInfo(); -- cgit v1.2.3