1 <?php
3 /**
4 * Smarty method Register_Prefilter
5 *
6 * Registers a PHP function as prefilter
7 *
8 * @package Smarty
9 * @subpackage SmartyMethod
10 * @author Uwe Tews
11 */
13 /**
14 * Registers a prefilter function to apply
15 * to a template before compiling
16 *
17 * @param object $smarty
18 * @param callback $function
19 */
20 function Smarty_Method_Register_Prefilter($smarty, $function)
21 {
22 $smarty->registered_filters['pre'][$smarty->_get_filter_name($function)] = $function;
23 }
25 ?>