diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-11-12 17:08:28 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-11-12 17:08:28 +0100 |
commit | 221cd3eb68276bf2e4a0960369af2b89dd709079 (patch) | |
tree | d325896d3f6eb592d597c8f6d0cdeeeffa7100b9 | |
parent | bc4c82bae5f93a4e482caf29a931882d07fb90fd (diff) | |
parent | 552691efbfa7063efdf2a29ac0577ea7f644d029 (diff) | |
download | forums-221cd3eb68276bf2e4a0960369af2b89dd709079.tar forums-221cd3eb68276bf2e4a0960369af2b89dd709079.tar.gz forums-221cd3eb68276bf2e4a0960369af2b89dd709079.tar.bz2 forums-221cd3eb68276bf2e4a0960369af2b89dd709079.tar.xz forums-221cd3eb68276bf2e4a0960369af2b89dd709079.zip |
Merge pull request #4495 from senky/ticket/14847
[ticket/14847] Add core.acp_attachments_config_edit_add
-rw-r--r-- | phpBB/includes/acp/acp_attachments.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php index 816387967a..e4650455c4 100644 --- a/phpBB/includes/acp/acp_attachments.php +++ b/phpBB/includes/acp/acp_attachments.php @@ -42,7 +42,7 @@ class acp_attachments function main($id, $mode) { - global $db, $user, $auth, $template, $cache, $phpbb_container; + global $db, $user, $auth, $template, $cache, $phpbb_container, $phpbb_dispatcher; global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx; $this->id = $id; @@ -162,6 +162,18 @@ class acp_attachments ) ); + /** + * Event to add and/or modify acp_attachement configurations + * + * @event core.acp_attachments_config_edit_add + * @var array display_vars Array of config values to display and process + * @var string mode Mode of the config page we are displaying + * @var boolean submit Do we display the form or process the submission + * @since 3.1.11-RC1 + */ + $vars = array('display_vars', 'mode', 'submit'); + extract($phpbb_dispatcher->trigger_event('core.acp_attachments_config_edit_add', compact($vars))); + $this->new_config = $config; $cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config; $error = array(); |