diff options
| author | 2024-10-14 09:35:41 +0200 | |
|---|---|---|
| committer | 2024-10-14 09:35:41 +0200 | |
| commit | df763eb8b34b9823511d93ec078d4644d3e6ff64 (patch) | |
| tree | 0dcdf0aa45e8f3a1b3ebe154277bac2c7fa960f0 /app | |
| parent | 256dcc21bb222184d5e917ea57cec334b74b96f4 (diff) | |
Add hook entries_favorite (#6880)
Called when entries are starred or unstarred
Diffstat (limited to 'app')
| -rw-r--r-- | app/Models/EntryDAO.php | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |
