Are you sure? Make sure you changed it appropriately. If you want to do a more complicated check you could define a function
outside the class using another Plugin then use that function in the custom check field.
PHP Code:
function mycustom_check($data)
{
// Some long code here
// ....
// ....
// ....
// return true/false
}
// Try this first:
$this->validfields['fieldname'] = array(TYPE_STR, REQ_NO, 'return mycustom_check($data)');
// If the above doesn't work try this:
// $this->validfields['fieldname'] = array(TYPE_STR, REQ_NO, 'if(mycustom_check($data)) {return true;} else { return false; }');
// This is just a guess I haven't tried/tested it out.
What exactly are you trying to check for? (Give examples of valid/invalid data)