mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:05:56 +00:00
add HOOK_RENDER_ARTICLE_API (closes #608)
This commit is contained in:
@@ -655,6 +655,11 @@ class API extends Handler {
|
|||||||
|
|
||||||
$headline_row["always_display_attachments"] = sql_bool_to_bool($line["always_display_enclosures"]);
|
$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);
|
array_push($headlines, $headline_row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class PluginHost {
|
|||||||
const HOOK_RENDER_ARTICLE_CDM = 11;
|
const HOOK_RENDER_ARTICLE_CDM = 11;
|
||||||
const HOOK_FEED_FETCHED = 12;
|
const HOOK_FEED_FETCHED = 12;
|
||||||
const HOOK_SANITIZE = 13;
|
const HOOK_SANITIZE = 13;
|
||||||
|
const HOOK_RENDER_ARTICLE_API = 14;
|
||||||
|
|
||||||
const KIND_ALL = 1;
|
const KIND_ALL = 1;
|
||||||
const KIND_SYSTEM = 2;
|
const KIND_SYSTEM = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user