// Validation prepping function to serialize the template parms field
function _serialize_if_array($field) // optional second parameter is not used
{
// check if the field is an array
if ( is_array($this->{$field}) )
{
// serialize the array
$this->{$field} = serialize($this->{$field});
}
}