1 <?php
3 /**
4 * Smarty method Register_Variablefilter
5 *
6 * Registers a PHP function as an output filter for variables
7 *
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews
11 */
13 /**
14 * Registers an output filter function which
15 * runs over any variable output
16 *
17 * @param object $smarty
18 * @param callback $function
19 */
20 function Smarty_Method_Register_Variablefilter($smarty, $function)
21 {
22 $smarty->registered_filters['variable'][$smarty->_get_filter_name($function)] = $function;
23 }
25 ?>