[ticket/13786] Add events to add MCP post options

Three new events are included:
1) Core event to perform new moderator action in includes/mcp/mcp_post.php
2) Core event to add/modify template data in includes/mcp/mcp_post.php
3) Template event to present new options in template/mcp_post.html
Fix another typo.

PHPBB3-13786
This commit is contained in:
javiexin 2015-04-27 17:36:43 +02:00
parent 18e8f281be
commit f80dc9dc16

View file

@ -285,7 +285,7 @@ function mcp_post_details($id, $mode, $action)
'attachments',
's_additional_opts',
);
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_poll_template_data', compact($vars)));
extract($phpbb_dispatcher->trigger_event('core.mcp_post_template_data', compact($vars)));
$template->assign_vars($mcp_post_template_data);
$template->assign_var('S_MCP_POST_ADDITIONAL_OPTS', $s_additional_opts);