mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14847] Add core.acp_attachments_config_edit_add
PHPBB3-14847
This commit is contained in:
parent
85898d3d2c
commit
552691efbf
1 changed files with 13 additions and 1 deletions
|
@ -42,7 +42,7 @@ class acp_attachments
|
||||||
|
|
||||||
function main($id, $mode)
|
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;
|
global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
$this->id = $id;
|
$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;
|
$this->new_config = $config;
|
||||||
$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config;
|
$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $this->new_config;
|
||||||
$error = array();
|
$error = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue