mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[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:
parent
e7f124b8ce
commit
4629ebfc4f
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue