Example #1
0
 function errors($value)
 {
     $errors = parent::errors($value);
     if (!empty($value) && !preg_match(EMAIL_REGEXP, $value)) {
         $errors[] = 'Invalid Email Format.';
     }
     return $errors;
 }