mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[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
This commit is contained in:
parent
0f6d16920b
commit
b627a097bb
1 changed files with 26 additions and 3 deletions
|
@ -383,7 +383,16 @@ class acp_profile
|
||||||
* @var array visibility_ary Array of fields that are visibility related
|
* @var array visibility_ary Array of fields that are visibility related
|
||||||
* @since 3.1.5-a4
|
* @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)));
|
extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_init', compact($vars)));
|
||||||
|
|
||||||
$options = $profile_field->prepare_options_form($exclude, $visibility_ary);
|
$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
|
* @var array options Array of options specific to this step
|
||||||
* @since 3.1.5-a4
|
* @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)));
|
extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_after', compact($vars)));
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
|
@ -898,7 +916,12 @@ class acp_profile
|
||||||
* @var array profile_fields Array of fields to be sent to the database
|
* @var array profile_fields Array of fields to be sent to the database
|
||||||
* @since 3.1.5-a4
|
* @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)));
|
extract($phpbb_dispatcher->trigger_event('core.acp_profile_create_edit_before_save', compact($vars)));
|
||||||
|
|
||||||
if ($action == 'create')
|
if ($action == 'create')
|
||||||
|
|
Loading…
Add table
Reference in a new issue