mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/14006] Add core.ucp_register_agreement event
It allows to execute code before the agreements are displayed. PHPBB3-14006
This commit is contained in:
@@ -176,6 +176,16 @@ class ucp_register
|
|||||||
}
|
}
|
||||||
unset($lang_row);
|
unset($lang_row);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Allows to modify the agreements.
|
||||||
|
*
|
||||||
|
* To assign data to the template, use $template->assign_vars()
|
||||||
|
*
|
||||||
|
* @event core.ucp_register_agreement
|
||||||
|
* @since 3.1.6-RC1
|
||||||
|
*/
|
||||||
|
$phpbb_dispatcher->dispatch('core.ucp_register_agreement');
|
||||||
|
|
||||||
$this->tpl_name = 'ucp_agreement';
|
$this->tpl_name = 'ucp_agreement';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user