]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeds.php
add pluginhost HOOK_HEADLINES_BEFORE (refs #814)
[tt-rss.git] / classes / feeds.php
index 317a90afcf61b0cc83476265cfea12ac5fff16e9..5ec10961438ffe7a5e89ef8454cdef059fd28ec2 100644 (file)
@@ -281,6 +281,12 @@ class Feeds extends Handler_Protected {
                        }
                } */
 
+               if ($offset == 0) {
+                       foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_HEADLINES_BEFORE) as $p) {
+                                $reply['content'] .= $p->hook_headlines_before($feed, $cat_view, $qfh_ret);
+                       }
+               }
+
                if ($this->dbh->num_rows($result) > 0) {
 
                        $lnum = $offset;