aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2016-12-16 15:05:22 +0100
committerjaviexin <javiexin@gmail.com>2016-12-16 15:05:22 +0100
commit620d033e0669a5a019f6c08a06c69d91ebe15f2b (patch)
tree628a396b673b667963196118cb173a4ddee12586 /phpBB
parentaae6341989f479d13f3ead0bf5126335444bcf35 (diff)
downloadforums-620d033e0669a5a019f6c08a06c69d91ebe15f2b.tar
forums-620d033e0669a5a019f6c08a06c69d91ebe15f2b.tar.gz
forums-620d033e0669a5a019f6c08a06c69d91ebe15f2b.tar.bz2
forums-620d033e0669a5a019f6c08a06c69d91ebe15f2b.tar.xz
forums-620d033e0669a5a019f6c08a06c69d91ebe15f2b.zip
[ticket/14849] Add core.acp_extensions_run_action_after
Additional event to be run after the execution of the action in ACP PHPBB-14849
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_extensions.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index 4d00279474..67222b43a4 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -347,6 +347,26 @@ class acp_extensions
$this->tpl_name = 'acp_ext_details';
break;
}
+
+ /**
+ * Event to run after a specific action on extension has completed
+ *
+ * @event core.acp_extensions_run_action_after
+ * @var string action Action that has run
+ * @var string u_action Url we are at
+ * @var string ext_name Extension name from request
+ * @var int safe_time_limit Safe limit of execution time
+ * @var int start_time Start time
+ * @var string tpl_name Template file to load
+ * @since 3.1.11-RC1
+ */
+ $u_action = $this->u_action;
+ $vars = array('action', 'u_action', 'ext_name', 'safe_time_limit', 'start_time', 'tpl_name');
+ extract($this->phpbb_dispatcher->trigger_event('core.acp_extensions_run_action_after', compact($vars)));
+
+ // In case they have been updated by the event
+ $this->u_action = $u_action;
+ $this->tpl_name = $tpl_name;
}
/**