classes/PodsForm.php
public static function validate( $type, $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {

		self::field_loader( $type );

		$validate = true;

		if ( 1 == pods_v( 'pre_save', $options, 1 ) && method_exists( self::$loaded[ $type ], 'validate' ) ) {
			$validate = self::$loaded[ $type ]->validate( $value, $name, $options, $fields, $pod, $id, $params );
		}

		$validate = apply_filters( "pods_field_{$type}_validate", $validate, $value, $name, $options, $fields, $pod, $id, $type, $params );

		return $validate;
	}
public static function validate( $type, $value, $name = null, $options = null, $fields = null, $pod = null, $id = null, $params = null ) {

		self::field_loader( $type );

		$validate = true;

		if ( 1 == pods_v( 'pre_save', $options, 1 ) && method_exists( self::$loaded[ $type ], 'validate' ) ) {
			$validate = self::$loaded[ $type ]->validate( $value, $name, $options, $fields, $pod, $id, $params );
		}

		$validate = apply_filters( "pods_field_{$type}_validate", $validate, $value, $name, $options, $fields, $pod, $id, $type, $params );

		return $validate;
	}
public static function validate ( $ type , $ value , $ name = null , $ options = null , $ fields = null , $ pod = null , $ id = null , $ params = null ) { self :: field_loader ( $ type ) ; $ validate = true ; if ( 1 == pods_v ( 'pre_save' , $ options , 1 ) && method_exists ( self :: $ loaded [ $ type ] , 'validate' ) ) { $ validate = self :: $ loaded [ $ type ] -> validate ( $ value , $ name , $ options , $ fields , $ pod , $ id , $ params ) ; } $ validate = apply_filters ( "pods_field_{$type}_validate" , $ validate , $ value , $ name , $ options , $ fields , $ pod , $ id , $ type , $ params ) ; return $ validate ; }
Validate a value before it's saved

@param string       $type
@param mixed        $value
@param string       $name
@param array        $options
@param array        $fields
@param array        $pod
@param int          $id
@param array|object $params

@static

@since 2.0.0
@return bool|mixed|void
Validate a value before it s saved