aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/profilefields/manager.php
diff options
context:
space:
mode:
authorPayBas <contact@paybas.com>2014-04-14 21:15:30 +0200
committerPayBas <contact@paybas.com>2014-05-03 17:54:38 +0200
commit42dfd1aa3c8fda95efd0dac03652a163752575d4 (patch)
tree196962d3971cc01261bf51e7b6a8ce2234637272 /phpBB/phpbb/profilefields/manager.php
parent2343d9f8d42337353d32a69fddcc1a51e0a49f5a (diff)
downloadforums-42dfd1aa3c8fda95efd0dac03652a163752575d4.tar
forums-42dfd1aa3c8fda95efd0dac03652a163752575d4.tar.gz
forums-42dfd1aa3c8fda95efd0dac03652a163752575d4.tar.bz2
forums-42dfd1aa3c8fda95efd0dac03652a163752575d4.tar.xz
forums-42dfd1aa3c8fda95efd0dac03652a163752575d4.zip
[ticket/12335] Added generate_profile_fields _ before
PHPBB3-12335
Diffstat (limited to 'phpBB/phpbb/profilefields/manager.php')
-rw-r--r--phpBB/phpbb/profilefields/manager.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/profilefields/manager.php b/phpBB/phpbb/profilefields/manager.php
index a7b8f55e34..5b326fe39c 100644
--- a/phpBB/phpbb/profilefields/manager.php
+++ b/phpBB/phpbb/profilefields/manager.php
@@ -370,6 +370,18 @@ class manager
$tpl_fields = array();
$tpl_fields['row'] = $tpl_fields['blockrow'] = array();
+ /**
+ * Event to modify data of the generated profile fields, before the template assignment loop
+ *
+ * @event core.generate_profile_fields_template_data_before
+ * @var array profile_row Array with users profile field data
+ * @var array tpl_fields Array with template data fields
+ * @var bool use_contact_fields Should we display contact fields as such?
+ * @since 3.1.0-b3
+ */
+ $vars = array('profile_row', 'tpl_fields', 'use_contact_fields');
+ extract($this->dispatcher->trigger_event('core.generate_profile_fields_template_data_before', compact($vars)));
+
foreach ($profile_row as $ident => $ident_ary)
{
$profile_field = $this->type_collection[$ident_ary['data']['field_type']];