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