Closed gocom closed 10 years ago
Sorry, I didn't understand. What's wrong in $form? And what's the parser() function (I could'n find it in the PHP documentation)?
Oh, sorry, not parser, but parse
-- it's part of Textpattern.
Really, I couldn't find it in the Textpattern documentation. Could you please give me a link where I can find some help?
See the PHPdoc signature in the source. There not much to the function other than to the copy+paste snippet I gave:
return parse($form);
The function parses template tags in the given string argument and returns the parsed string.
Finally done! Sorry for keeping you waiting (lack of time)!
Since the $form contains a template tag, it needs to be passed through parse() function. E.g.
The plugin is currently working just because of the second pass we do with the parser, but this isn't meant as a replacement for parsing; its used for callbacks and pushing data to prior nodes in the template. Leaving parser out cuts the parser queue, and the plugin may not work in every given context.