diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-04 17:07:35 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-04 17:07:35 +0200 |
commit | 0d182d9e9376a56b314b072c9d4395c18b900478 (patch) | |
tree | abb07f5fcf7f51c928fce81da70d1023dbc2af01 /phpBB/includes/functions_posting.php | |
parent | b153637cb8bd58d571748f9539e81822be11d8bb (diff) | |
download | forums-0d182d9e9376a56b314b072c9d4395c18b900478.tar forums-0d182d9e9376a56b314b072c9d4395c18b900478.tar.gz forums-0d182d9e9376a56b314b072c9d4395c18b900478.tar.bz2 forums-0d182d9e9376a56b314b072c9d4395c18b900478.tar.xz forums-0d182d9e9376a56b314b072c9d4395c18b900478.zip |
[feature/php-events] Fix naming and doc of core.generate_smilies_after
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 0476c9b5d5..7ac56588af 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -123,6 +123,18 @@ function generate_smilies($mode, $forum_id) } } + /** + * This event is called when the smilies got populated + * + * @event core.generate_smilies_after + * @var string mode Mode of the smilies: window|inline + * @var int forum_id The forum ID we are currently in + * @var bool display_link Shall we display the "more smilies" link? + * @since 3.1-A1 + */ + $vars = array('mode', 'forum_id', 'display_link'); + extract($phpbb_dispatcher->trigger_event('core.generate_smilies_after', compact($vars))); + if ($mode == 'inline' && $display_link) { $template->assign_vars(array( @@ -131,9 +143,6 @@ function generate_smilies($mode, $forum_id) ); } - $vars = array('mode', 'forum_id', 'display_link'); - extract($phpbb_dispatcher->trigger_event('core.generate_smilies_footer', compact($vars))); - if ($mode == 'window') { page_footer(); |