]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
implement HOOK_FEED_PARSED, add example plugin (refs #424)
[tt-rss.git] / include / rssfuncs.php
index a28cb2063077d744d5d62d558790dcde9ef17591..817490a84ba99b96387366198946b44c6f174d2d 100644 (file)
 
                if (!$rss->error()) {
 
+                       global $pluginhost;
+                       $pluginhost->run_hooks($pluginhost::HOOK_FEED_PARSED, "hook_feed_parsed", $rss);
+
                        if ($debug_enabled) {
                                _debug("update_rss_feed: processing feed data...");
                        }
                                }
 
                                // TODO: less memory-hungry implementation
-                               global $pluginhost;
 
                                if ($debug_enabled) {
                                        _debug("update_rss_feed: applying plugin filters..");
                                        "tags" => $entry_tags,
                                        "author" => $entry_author);
 
+                               global $pluginhost;
                                foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_FILTER) as $plugin) {
                                        $article = $plugin->hook_article_filter($article);
                                }