"attachments" => $attachments
);
+ global $pluginhost;
+ foreach ($pluginhost->get_hooks($pluginhost::HOOK_RENDER_ARTICLE_API) as $p) {
+ $article = $p->hook_render_article_api(array("article" => $article));
+ }
+
+
array_push($articles, $article);
}
global $pluginhost;
foreach ($pluginhost->get_hooks($pluginhost::HOOK_RENDER_ARTICLE_API) as $p) {
- $headline_row = $p->hook_render_article_api($headline_row);
+ $headline_row = $p->hook_render_article_api(array("headline" => $headline_row));
}
array_push($headlines, $headline_row);
* @return boolean True if defined successfully or not.
*/
function define_default($name, $value) {
- // Note: performence freaks should define everything in
- // config.php becasue if will make defined() run much faster,
- // see comment by 'tris+php at tfconsulting dot com dot au'
- // here:
- // http://www.php.net/manual/en/function.defined.php#89886
defined($name) or define($name, $value);
}