diff options
author | javiexin <javiexin@gmail.com> | 2015-06-02 18:30:10 +0200 |
---|---|---|
committer | javiexin <javiexin@gmail.com> | 2015-06-02 18:30:10 +0200 |
commit | b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc (patch) | |
tree | dfbf52664bb3c403053d7aaf68f2c5cab38a662a /phpBB/includes/acp/acp_profile.php | |
parent | 0f6d16920b88ea9aef9391619a64bf9494dd266d (diff) | |
download | forums-b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc.tar forums-b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc.tar.gz forums-b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc.tar.bz2 forums-b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc.tar.xz forums-b627a097bb89d8eabdc2ecefbd0205f6cfbe60cc.zip |
[ticket/13911] Add events to configure options for profile fields
Adds core events to includes/acp/acp_profile.php and template events
to adm/style/acp_profile.html to support adding configuration options
to profile fields. Fix bamboo formatting errors.
PHPBB3-13911
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 09236f4404..220361d7ac 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -383,7 +383,16 @@ class acp_profile * @var array visibility_ary Array of fields that are visibility related * @since 3.1.5-a4 */ - $vars = array('action', 'step', 'submit', 'save', 'field_type', 'field_row', 'exclude', 'visibility_ary'); + $vars = array( + 'action', + 'step', + 'submit', + 'save', + 'field_type', + 'field_row', + 'exclude', + 'visibility_ary', + ); extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_init', compact($vars))); $options = $profile_field->prepare_options_form($exclude, $visibility_ary); @@ -676,7 +685,16 @@ class acp_profile * @var array options Array of options specific to this step * @since 3.1.5-a4 */ - $vars = array('action', 'step', 'submit', 'save', 'field_type', 'field_data', 's_hidden_fields', 'options'); + $vars = array( + 'action', + 'step', + 'submit', + 'save', + 'field_type', + 'field_data', + 's_hidden_fields', + 'options', + ); extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_after', compact($vars))); $template->assign_vars(array( @@ -898,7 +916,12 @@ class acp_profile * @var array profile_fields Array of fields to be sent to the database * @since 3.1.5-a4 */ - $vars = array('action', 'field_type', 'field_data', 'profile_fields'); + $vars = array( + 'action', + 'field_type', + 'field_data', + 'profile_fields', + ); extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_before_save', compact($vars))); if ($action == 'create') |