aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/feed.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2016-06-21 12:47:30 +0700
committerrxu <rxu@mail.ru>2016-07-17 21:14:13 +0700
commit3df9b2c8f813cb2458c57f487f282e6fdc97c28f (patch)
treec7fbc681e8650d5751d6ea5c55827d2b0fa088d0 /phpBB/feed.php
parent9595946508c198be3aaae6deb88dee2bba354aef (diff)
downloadforums-3df9b2c8f813cb2458c57f487f282e6fdc97c28f.tar
forums-3df9b2c8f813cb2458c57f487f282e6fdc97c28f.tar.gz
forums-3df9b2c8f813cb2458c57f487f282e6fdc97c28f.tar.bz2
forums-3df9b2c8f813cb2458c57f487f282e6fdc97c28f.tar.xz
forums-3df9b2c8f813cb2458c57f487f282e6fdc97c28f.zip
[ticket/14688] Add core events to the feeds
PHPBB3-14688
Diffstat (limited to 'phpBB/feed.php')
-rw-r--r--phpBB/feed.php14
1 files changed, 14 insertions, 0 deletions
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)
{