From 10875cea459051e491f5567e11fd13b6e2b58f1a Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Tue, 11 Aug 2009 19:53:10 +0000 Subject: [PATCH] * Added new event hook frontend_sidebar_plugins to iterate through sidebar plugins and modify their output. $eventData is the array of their data. (garvinhicking) --- docs/NEWS | 4 ++++ include/plugin_api.inc.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index e3a13e31..ff0131f0 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.5 () ------------------------------------------------------------------------ + * Added new event hook frontend_sidebar_plugins to iterate through + sidebar plugins and modify their output. $eventData is the array + of their data. (garvinhicking) + * Added ability to specify a custom Xinha config. Either supply a 'my_custom.js' file inside the template directory, or if omitted, the default htmlarea/my_custom.js is used. With this diff --git a/include/plugin_api.inc.php b/include/plugin_api.inc.php index 3cf8edc2..619f69dd 100644 --- a/include/plugin_api.inc.php +++ b/include/plugin_api.inc.php @@ -870,6 +870,8 @@ class serendipity_plugin_api } } + serendipity_plugin_api::hook_event('frontend_sidebar_plugins', $pluginData, $addData); + $serendipity['smarty']->assign_by_ref('plugindata', $pluginData); $serendipity['smarty']->assign('pluginside', ucfirst($side));