From f73ca11dda0539cbf86718fe250c4fcec9cb2754 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 25 Apr 2001 15:38:15 +0000 Subject: [PATCH] Docs on new parameter to custom functions. --- docs.sgml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs.sgml b/docs.sgml index e6bf838d..eaf6e6d4 100644 --- a/docs.sgml +++ b/docs.sgml @@ -3149,6 +3149,13 @@ OUTPUT: function. Anything that the function returns gets displayed in place of the tag in the template. + + Since version 1.4.0, custom functions are also passed Smarty object + as the second parameter. If the custom function declares the second + parameter passed by reference, it can then use Smarty object's + variable assignment and clearing functions to manipulate template + variables dynamically. + You can also add custom functions programatically with the register_function API.