You are here

function Smarty::register_outputfilter in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/Smarty.class.php \Smarty::register_outputfilter()

Registers an output filter function to apply to a template output

Parameters

string $function name of PHP function:

File

includes/moodle/lib/smarty/Smarty.class.php, line 888

Class

Smarty
@package Smarty

Code

function register_outputfilter($function) {
  $_name = is_array($function) ? $function[1] : $function;
  $this->_plugins['outputfilter'][$_name] = array(
    $function,
    null,
    null,
    false,
  );
}