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

		self::field_loader( $type );

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

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

		self::field_loader( $type );

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

		return $value;
	}
public static function pre_save ( $ type , $ value , $ id = null , $ name = null , $ options = null , $ fields = null , $ pod = null , $ params = null ) { self :: field_loader ( $ type ) ; if ( 1 == pods_v ( 'field_pre_save' , $ options , 1 ) && method_exists ( self :: $ loaded [ $ type ] , 'pre_save' ) ) { $ value = self :: $ loaded [ $ type ] -> pre_save ( $ value , $ id , $ name , $ options , $ fields , $ pod , $ params ) ; } return $ value ; }
Change the value or perform actions after validation but before saving to the DB

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

@static

@since 2.0.0
@return mixed
Change the value or perform actions after validation but before saving to the DB