aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-12-07 21:06:39 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-12-07 21:06:39 +0100
commit434a04344e415feda6e19671afc456f99f73b9cd (patch)
tree31b18e28e212694746b3c7f088fcaa72b92902f6 /phpBB
parentf08c77448554704710e6430779e75d958f261b7d (diff)
parent07ae3e997c72317a0dd3c08be45aa6e760213102 (diff)
downloadforums-434a04344e415feda6e19671afc456f99f73b9cd.tar
forums-434a04344e415feda6e19671afc456f99f73b9cd.tar.gz
forums-434a04344e415feda6e19671afc456f99f73b9cd.tar.bz2
forums-434a04344e415feda6e19671afc456f99f73b9cd.tar.xz
forums-434a04344e415feda6e19671afc456f99f73b9cd.zip
Merge branch '3.1.x'
* 3.1.x: [ticket/14343] Add event when locking/unlocking posts/topics
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/mcp/mcp_main.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php
index b0579d8995..945e881deb 100644
--- a/phpBB/includes/mcp/mcp_main.php
+++ b/phpBB/includes/mcp/mcp_main.php
@@ -327,6 +327,22 @@ function lock_unlock($action, $ids)
));
}
+ /**
+ * Perform additional actions after locking/unlocking posts/topics
+ *
+ * @event core.mcp_lock_unlock_after
+ * @var string action Variable containing the action we perform on the posts/topics ('lock', 'unlock', 'lock_post' or 'unlock_post')
+ * @var array ids Array containing the post/topic IDs that have been locked/unlocked
+ * @var array data Array containing posts/topics data
+ * @since 3.1.7-RC1
+ */
+ $vars = array(
+ 'action',
+ 'ids',
+ 'data',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_lock_unlock_after', compact($vars)));
+
$success_msg = $l_prefix . ((sizeof($ids) == 1) ? '' : 'S') . '_' . (($action == 'lock' || $action == 'lock_post') ? 'LOCKED' : 'UNLOCKED') . '_SUCCESS';
meta_refresh(2, $redirect);