From 3df9b2c8f813cb2458c57f487f282e6fdc97c28f Mon Sep 17 00:00:00 2001 From: rxu Date: Tue, 21 Jun 2016 12:47:30 +0700 Subject: [ticket/14688] Add core events to the feeds PHPBB3-14688 --- phpBB/feed.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'phpBB/feed.php') diff --git a/phpBB/feed.php b/phpBB/feed.php index e0c0b01db6..6fd0ed800f 100644 --- a/phpBB/feed.php +++ b/phpBB/feed.php @@ -84,6 +84,20 @@ $feed->open(); // Iterate through items while ($row = $feed->get_item()) { + /** + * Event to modify the feed row + * + * @event core.feed_modify_feed_row + * @var int forum_id Forum ID + * @var string mode Feeds mode (forums|topics|topics_new|topics_active|news) + * @var array row Array with feed data + * @var int topic_id Topic ID + * + * @since 3.1.10-RC1 + */ + $vars = array('forum_id', 'mode', 'row', 'topic_id'); + extract($phpbb_dispatcher->trigger_event('core.feed_modify_feed_row', compact($vars))); + // BBCode options to correctly disable urls, smilies, bbcode... if ($feed->get('options') === NULL) { -- cgit v1.2.1