]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref/feeds.php
add HOOK_UNSUBSCRIBE_FEED
[tt-rss.git] / classes / pref / feeds.php
index a86a1af94b369a81b05faa9b54db8b83d18faa16..fcbc0f8cdab00efab2845bb7d3afc9e116b1edf6 100755 (executable)
@@ -1740,6 +1740,10 @@ class Pref_Feeds extends Handler_Protected {
 
        static function remove_feed($id, $owner_uid) {
 
+               foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) {
+                       $line = $p->hook_unsubscribe_feed($id, $owner_uid);
+               }
+
                if ($id > 0) {
 
                        /* save starred articles in Archived feed */
@@ -1969,4 +1973,4 @@ class Pref_Feeds extends Handler_Protected {
                return $url_path;
        }
 
-}
\ No newline at end of file
+}