aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-03-04 02:00:54 -0500
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:17:04 +0200
commit3c20ac71c51c9e8033884f5694fbad2fa6040ca6 (patch)
tree3a1945a90fbfd31126bcc5a1e85845c8b860b084 /phpBB/includes/functions_display.php
parent841ea0e494504400c798faa6cc860dd1179e1004 (diff)
downloadforums-3c20ac71c51c9e8033884f5694fbad2fa6040ca6.tar
forums-3c20ac71c51c9e8033884f5694fbad2fa6040ca6.tar.gz
forums-3c20ac71c51c9e8033884f5694fbad2fa6040ca6.tar.bz2
forums-3c20ac71c51c9e8033884f5694fbad2fa6040ca6.tar.xz
forums-3c20ac71c51c9e8033884f5694fbad2fa6040ca6.zip
[feature/events] Started on hooks for advanced last topic titles mod.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 00efd281c0..b23540bcbd 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -119,6 +119,8 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'ORDER_BY' => 'f.left_id',
);
+ run_hooks('display_forums_sql_inject', &$sql_ary);
+
$sql = $db->sql_build_query('SELECT', $sql_ary);
$result = $db->sql_query($sql);
@@ -127,6 +129,8 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
while ($row = $db->sql_fetchrow($result))
{
+ run_hooks('display_forums_row_inject', &$row);
+
$forum_id = $row['forum_id'];
// Mark forums read?
@@ -223,6 +227,9 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
}
$forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id'];
$forum_rows[$parent_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
+
+ $data = array(&$forum_rows, &$parent_id, &$row);
+ run_hooks('display_forums_row_values_inject', &$data);
}
else if ($row['forum_type'] != FORUM_CAT)
{
@@ -482,6 +489,8 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'U_LAST_POSTER' => get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
'U_LAST_POST' => $last_post_url)
);
+
+ run_hooks('display_forums_assign_block_vars', &$row);
// Assign subforums loop for style authors
foreach ($subforums_list as $subforum)