[feature/php-events] Fix naming and docs of core.index_modify_page_title

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-08-02 20:59:38 +02:00
parent d152c20e4b
commit e85afc6b83

View file

@ -173,8 +173,15 @@ $template->assign_vars(array(
$page_title = $user->lang['INDEX']; $page_title = $user->lang['INDEX'];
/**
* You can use this event to modify the page title and load data for the index
*
* @event core.index_modify_page_title
* @var string page_title Title of the index page
* @since 3.1-A1
*/
$vars = array('page_title'); $vars = array('page_title');
extract($phpbb_dispatcher->trigger_event('core.index_page_title', compact($vars))); extract($phpbb_dispatcher->trigger_event('core.index_modify_page_title', compact($vars)));
// Output page // Output page
page_header($page_title); page_header($page_title);