function Smarty::register_modifier in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::register_modifier()
Registers modifier to be used in templates
Parameters
string $modifier name of template modifier:
string $modifier_impl name of PHP function to register:
File
- includes/
moodle/ lib/ smarty/ Smarty.class.php, line 784
Class
- Smarty
- @package Smarty
Code
function register_modifier($modifier, $modifier_impl) {
$this->_plugins['modifier'][$modifier] = array(
$modifier_impl,
null,
null,
false,
);
}