diff options
author | brunoais <brunoaiss@gmail.com> | 2014-07-03 15:11:46 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2014-07-06 20:10:44 +0100 |
commit | 4629ebfc4ff95c61069c271e7b77102a77b7a761 (patch) | |
tree | 0228d65603e9308a97c1f12fea1b3f2407f6fa74 | |
parent | e7f124b8ce7f483bfbeed4c3aabe43c96d1060cb (diff) | |
download | forums-4629ebfc4ff95c61069c271e7b77102a77b7a761.tar forums-4629ebfc4ff95c61069c271e7b77102a77b7a761.tar.gz forums-4629ebfc4ff95c61069c271e7b77102a77b7a761.tar.bz2 forums-4629ebfc4ff95c61069c271e7b77102a77b7a761.tar.xz forums-4629ebfc4ff95c61069c271e7b77102a77b7a761.zip |
[ticket/12801] Add core.functions_posting.load_drafts_draft_list_results
Adding event core.functions_posting.load_drafts_draft_list_results
PHPBB3-12801
-rw-r--r-- | phpBB/includes/functions_posting.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index d728396524..913071ec4f 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -947,6 +947,20 @@ function load_drafts($topic_id = 0, $forum_id = 0, $id = 0, $pm_action = '', $ms } $db->sql_freeresult($result); } + + /** + * Drafts found and their topics + * Edit $draft_rows in order to add or remove drafts loaded + * + * @event core.functions_posting.load_drafts_draft_list_results + * @var array draft_rows The drafts query result. Includes its forum id and everything about the draft + * @var array topic_ids The list of topics got from the topics table + * @var array topic_rows The topics that draft_rows references + * @since 3.1.0-RC2 + */ + $vars = array('draft_rows', 'topic_ids', 'topic_rows'); + extract($phpbb_dispatcher->trigger_event('core.functions_posting.load_drafts_draft_list_results', compact($vars))); + unset($topic_ids); $template->assign_var('S_SHOW_DRAFTS', true); |