1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 21:45: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);
}