1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:05:56 +00:00

add HOOK_RENDER_ARTICLE_API (closes #608)

This commit is contained in:
Andrew Dolgov
2013-03-21 18:19:23 +04:00
parent 16314ddafe
commit b6604c9613
2 changed files with 6 additions and 0 deletions

View File

@@ -655,6 +655,11 @@ class API extends Handler {
$headline_row["always_display_attachments"] = sql_bool_to_bool($line["always_display_enclosures"]);
global $pluginhost;
foreach ($pluginhost->get_hooks($pluginhost::HOOK_RENDER_ARTICLE_API) as $p) {
$headline_row = $p->hook_render_article_api($headline_row);
}
array_push($headlines, $headline_row);
}

View File

@@ -22,6 +22,7 @@ class PluginHost {
const HOOK_RENDER_ARTICLE_CDM = 11;
const HOOK_FEED_FETCHED = 12;
const HOOK_SANITIZE = 13;
const HOOK_RENDER_ARTICLE_API = 14;
const KIND_ALL = 1;
const KIND_SYSTEM = 2;