register_modifier <methodsynopsis> <type>void</type><methodname>register_modifier</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> <methodparam><type>mixed</type><parameter>impl</parameter></methodparam> </methodsynopsis> <para> Use this to dynamically register modifier plugin. Pass in the template modifier name, followed by the PHP function that it implements it. </para> <para> The php-function callback <parameter>impl</parameter> can be either (a) a string containing the function name or (b) an array of the form <literal>array(&$object, $method)</literal> with <literal>&$object</literal> being a reference to an object and <literal>$method</literal> being a string containing the mehod-name or (c) an array of the form <literal>array(&$class, $method)</literal> with <literal>$class</literal> being a classname and <literal>$method</literal> being a class method of that class. </para> <example> <title>register_modifier register_modifier("sslash", "stripslashes"); // now you can use {$var|sslash} to strip slashes from variables ?> ]]>