[ticket/12801] Add core.functions_posting.load_drafts_draft_list_results

Adding event core.functions_posting.load_drafts_draft_list_results

PHPBB3-12801
This commit is contained in:
brunoais 2014-07-03 15:11:46 +01:00
parent e7f124b8ce
commit 4629ebfc4f

View file

@ -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);