diff options
author | Andrew Dolgov <[email protected]> | 2013-03-21 18:19:23 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-21 18:19:23 +0400 |
commit | b6604c96135303a546ff8dcfefdcd804ed4554a6 (patch) | |
tree | 106b84ed3a8b1a89988d2858e0a73f4bfa0a3121 /classes/api.php | |
parent | 16314ddafe88b6c214892799a5da354e2188524c (diff) |
add HOOK_RENDER_ARTICLE_API (closes #608)
Diffstat (limited to 'classes/api.php')
-rw-r--r-- | classes/api.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/api.php b/classes/api.php index 5e7ec6573..b9168cf93 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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); } |