mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:15:55 +00:00
add HOOK_PREFS_SAVE_FEED
This commit is contained in:
@@ -35,6 +35,7 @@ class PluginHost {
|
||||
const HOOK_HOTKEY_INFO = 18;
|
||||
const HOOK_ARTICLE_LEFT_BUTTON = 19;
|
||||
const HOOK_PREFS_EDIT_FEED = 20;
|
||||
const HOOK_PREFS_SAVE_FEED = 21;
|
||||
|
||||
const KIND_ALL = 1;
|
||||
const KIND_SYSTEM = 2;
|
||||
|
||||
@@ -1002,6 +1002,9 @@ class Pref_Feeds extends Handler_Protected {
|
||||
mark_unread_on_update = $mark_unread_on_update
|
||||
WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]);
|
||||
|
||||
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_SAVE_FEED,
|
||||
"hook_prefs_save_feed", $feed_id);
|
||||
|
||||
} else {
|
||||
$feed_data = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user