Forums / Developer / aehem: collectinformation.php - add validation

aehem: collectinformation.php - add validation

Author Message

Thomas Brandl

Wednesday 24 September 2003 8:36:28 am

ok, was easy! Just return the contents of your liking!

Hi, (-oh- this textarea shrinked)

I want to extend collectinformation.php with some basic validation:
if($contentClassAttribute->IsRequired && empty($content)) {
$HasValidationError = true;
.
.
}

so far, so simple. Now I need to give some feedback back to the user by setting some template variable.

Question:
How can I pass on template-variables from inside collectinformation.php?
It's called by /kernel/content/action.php via $result =& $module->run("collectinformation", array());
which in turn returns $result.
I couldn't even find out, how to assign variables to templates at all - sdk is down.

So I'm thankful for any suggestions!
Thanks!
t