From 5f70e4111889ddf4b97a257abd81f94cac7bac8a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 May 2025 22:36:33 +0300 Subject: add plugin hooks invoked when articles get un/marked or un/published --- classes/PluginHost.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes/PluginHost.php') diff --git a/classes/PluginHost.php b/classes/PluginHost.php index ec47e6249..bfc02318b 100644 --- a/classes/PluginHost.php +++ b/classes/PluginHost.php @@ -199,6 +199,12 @@ class PluginHost { /** @see Plugin::hook_validate_session() */ const HOOK_VALIDATE_SESSION = "hook_validate_session"; + /** @see Plugin::hook_articles_marked() */ + const HOOK_ARTICLES_MARKED = "hook_articles_marked"; + + /** @see Plugin::hook_articles_published() */ + const HOOK_ARTICLES_PUBLISHED = "hook_articles_published"; + const KIND_ALL = 1; const KIND_SYSTEM = 2; const KIND_USER = 3; -- cgit v1.2.3-54-g00ecf