aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-08-20 15:48:18 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-08-20 15:48:18 +0200
commit942705e6c619d9e7676e5f0123f7a8dcd1be8b45 (patch)
tree98fc8ca3a12909c178badf16034fed5026db4380 /phpBB/phpbb
parent648389af6f5fa53062d93a63f5bb5cb1ec0a65c0 (diff)
parent6c98b01ad1216f89695dbf2cc59d985e53544751 (diff)
downloadforums-942705e6c619d9e7676e5f0123f7a8dcd1be8b45.tar
forums-942705e6c619d9e7676e5f0123f7a8dcd1be8b45.tar.gz
forums-942705e6c619d9e7676e5f0123f7a8dcd1be8b45.tar.bz2
forums-942705e6c619d9e7676e5f0123f7a8dcd1be8b45.tar.xz
forums-942705e6c619d9e7676e5f0123f7a8dcd1be8b45.zip
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/profilefields/manager.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/phpbb/profilefields/manager.php b/phpBB/phpbb/profilefields/manager.php
index 4ad3214ae4..ea4b24af56 100644
--- a/phpBB/phpbb/profilefields/manager.php
+++ b/phpBB/phpbb/profilefields/manager.php
@@ -276,12 +276,32 @@ class manager
$profile_field = $this->type_collection[$field_data['field_type']];
$tpl_fields[] = array(
+ 'PROFILE_FIELD_IDENT' => $field_ident,
'PROFILE_FIELD_TYPE' => $field_data['field_type'],
'PROFILE_FIELD_NAME' => $profile_field->get_field_name($field_data['lang_name']),
'PROFILE_FIELD_EXPLAIN' => $this->user->lang($field_data['lang_explain']),
);
}
+ $profile_cache = $this->profile_cache;
+
+ /**
+ * Event to modify template headlines of the generated profile fields
+ *
+ * @event core.generate_profile_fields_template_headlines
+ * @var string restrict_option Restrict the published fields to a certain profile field option
+ * @var array tpl_fields Array with template data fields
+ * @var array profile_cache A copy of the profile cache to make additional checks
+ * @since 3.1.6-RC1
+ */
+ $vars = array(
+ 'restrict_option',
+ 'tpl_fields',
+ 'profile_cache',
+ );
+ extract($this->dispatcher->trigger_event('core.generate_profile_fields_template_headlines', compact($vars)));
+ unset($profile_cache);
+
return $tpl_fields;
}