-/*
- * Helper function to validate custom field values
- *
- * @params Array $params Custom fields with values
- * @params Array $errors Reference fields to be check with
- * @params Boolean $checkForDisallowed Check for disallowed elements
- * in params
- * @params Boolean $checkForRequired Check for non present required elements
- * in params
- * @return Array Validation errors
- */
-