diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-12-27 21:31:31 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-12-27 21:31:31 +0100 |
commit | 01181f1e4e202de2abd14eb95e59162dbbc138ff (patch) | |
tree | 75974bcf577a07ab4ac4382b38b8d172bd2e7ef7 /phpBB/includes/acp/acp_profile.php | |
parent | d8f9cb4961a5eef91cc00f6907b711d2e319beba (diff) | |
parent | 0318cea91021784244abac56b87d49442a2360b7 (diff) | |
download | forums-01181f1e4e202de2abd14eb95e59162dbbc138ff.tar forums-01181f1e4e202de2abd14eb95e59162dbbc138ff.tar.gz forums-01181f1e4e202de2abd14eb95e59162dbbc138ff.tar.bz2 forums-01181f1e4e202de2abd14eb95e59162dbbc138ff.tar.xz forums-01181f1e4e202de2abd14eb95e59162dbbc138ff.zip |
Merge pull request #5040 from kasimi/ticket/15446
[ticket/15446] Add event core.acp_profile_action
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index d3daf63bd6..f5c1b8e218 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -738,6 +738,32 @@ class acp_profile break; } + $tpl_name = $this->tpl_name; + $page_title = $this->page_title; + $u_action = $this->u_action; + + /** + * Event to handle actions on the ACP profile fields page + * + * @event core.acp_profile_action + * @var string action Action that is being performed + * @var string tpl_name Template file to load + * @var string page_title Page title + * @var string u_action The URL we are at, read only + * @since 3.2.2-RC1 + */ + $vars = array( + 'action', + 'tpl_name', + 'page_title', + 'u_action', + ); + extract($phpbb_dispatcher->trigger_event('core.acp_profile_action', compact($vars))); + + $this->tpl_name = $tpl_name; + $this->page_title = $page_title; + unset($u_action); + $sql = 'SELECT * FROM ' . PROFILE_FIELDS_TABLE . ' ORDER BY field_order'; |