diff options
author | Zoddo <zoddo.ino@gmail.com> | 2015-07-15 15:55:55 +0200 |
---|---|---|
committer | Zoddo <zoddo.ino@gmail.com> | 2015-07-15 15:55:55 +0200 |
commit | 2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b (patch) | |
tree | ecbb1941c9431ccc564bdbdedd900704f92cbacd | |
parent | 7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df (diff) | |
download | forums-2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b.tar forums-2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b.tar.gz forums-2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b.tar.bz2 forums-2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b.tar.xz forums-2e10961fff5b7b1fe2bc2c3c7c3a7ad5c43d925b.zip |
[ticket/14014] Add core.mcp_forum_view_before event
This event can be used to get some data in order to execute other actions.
PHPBB3-14014
-rw-r--r-- | phpBB/includes/mcp/mcp_forum.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php index c18ca1aa1d..157134b09e 100644 --- a/phpBB/includes/mcp/mcp_forum.php +++ b/phpBB/includes/mcp/mcp_forum.php @@ -77,6 +77,30 @@ function mcp_forum_view($id, $mode, $action, $forum_info) break; } + /** + * Get some data in order to execute other actions. + * + * @event core.mcp_forum_view_before + * @var string action The action + * @var array forum_info Array with forum infos + * @var int start Start value + * @var array topic_id_list Array of topics ids + * @var array post_id_list Array of posts ids + * @var array source_topic_ids Array of source topics ids + * @var int to_topic_id Array of destination topics ids + * @since 3.1.6-RC1 + */ + $vars = array( + 'action', + 'forum_info', + 'start', + 'topic_id_list', + 'post_id_list', + 'source_topic_ids', + 'to_topic_id', + ); + extract($phpbb_dispatcher->trigger_event('core.mcp_forum_view_before', compact($vars))); + $pagination = $phpbb_container->get('pagination'); $selected_ids = ''; |