diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-08-20 15:48:12 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-08-20 15:48:12 +0200 |
| commit | 6c98b01ad1216f89695dbf2cc59d985e53544751 (patch) | |
| tree | 8bf4e7ebe608d65a30dcbd894a654463107f0557 /phpBB/phpbb | |
| parent | ffe72e500c3039ac5691bc1f3bbab203d8d4779f (diff) | |
| parent | 897b9f333bf2ee05d8c4e371d2b324d255fbfd5e (diff) | |
| download | forums-6c98b01ad1216f89695dbf2cc59d985e53544751.tar forums-6c98b01ad1216f89695dbf2cc59d985e53544751.tar.gz forums-6c98b01ad1216f89695dbf2cc59d985e53544751.tar.bz2 forums-6c98b01ad1216f89695dbf2cc59d985e53544751.tar.xz forums-6c98b01ad1216f89695dbf2cc59d985e53544751.zip | |
Merge pull request #3849 from marc1706/ticket/14037
[ticket/14037] Allows adapting memberlist profile fields headline
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/profilefields/manager.php | 20 |
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; } |
