Example #1
0
 public static function validateRequired($field)
 {
     if (is_post() && !\Meta\Core\Form::hasValue($field)) {
         \Meta\Core\Form::addError(t('There are one or more required field(s)'), $field);
     }
 }