add pluginhost HOOK_HEADLINES_BEFORE (refs #814)

master
Andrew Dolgov 10 years ago
parent 02b0348a8a
commit 7eb87b80d5

@ -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) { if ($this->dbh->num_rows($result) > 0) {
$lnum = $offset; $lnum = $offset;

@ -42,6 +42,7 @@ class PluginHost {
const HOOK_SEARCH = 25; const HOOK_SEARCH = 25;
const HOOK_FORMAT_ENCLOSURES = 26; const HOOK_FORMAT_ENCLOSURES = 26;
const HOOK_SUBSCRIBE_FEED = 27; const HOOK_SUBSCRIBE_FEED = 27;
const HOOK_HEADLINES_BEFORE = 28;
const KIND_ALL = 1; const KIND_ALL = 1;
const KIND_SYSTEM = 2; const KIND_SYSTEM = 2;

Loading…
Cancel
Save