game/onyx2/modules/templates/smarty/sysplugins/smarty_method_register_variablefilter.php

26 lines
484 B
PHP
Raw Normal View History

2020-11-15 15:12:32 +00:00
<?php
/**
* Smarty method Register_Variablefilter
*
* Registers a PHP function as an output filter for variables
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Registers an output filter function which
* runs over any variable output
*
* @param object $smarty
* @param callback $function
*/
function register_variablefilter($smarty, $function)
{
$smarty->registered_filters['variable'][$smarty->_get_filter_name($function)] = $function;
}
?>