classes/PodsForm.php
public static function register_field_type( $type, $file = null ) {

		$field_type = pods_transient_get( 'pods_field_type_' . $type );

		if ( empty( $field_type ) || $field_type['type'] != $type || $field_type['file'] != $file ) {
			self::field_loader( $type, $file );

			$class_vars = get_class_vars( get_class( self::$loaded[ $type ] ) );
			// PHP 5.2.x workaround
			self::$field_types[ $type ]         = $class_vars;
			self::$field_types[ $type ]['file'] = $file;

			pods_transient_set( 'pods_field_type_' . $type, self::$field_types[ $type ] );
		} else {
			self::$field_types[ $type ] = $field_type;
		}

		return self::$field_types[ $type ];
	}
public static function register_field_type( $type, $file = null ) {

		$field_type = pods_transient_get( 'pods_field_type_' . $type );

		if ( empty( $field_type ) || $field_type['type'] != $type || $field_type['file'] != $file ) {
			self::field_loader( $type, $file );

			$class_vars = get_class_vars( get_class( self::$loaded[ $type ] ) );
			// PHP 5.2.x workaround
			self::$field_types[ $type ]         = $class_vars;
			self::$field_types[ $type ]['file'] = $file;

			pods_transient_set( 'pods_field_type_' . $type, self::$field_types[ $type ] );
		} else {
			self::$field_types[ $type ] = $field_type;
		}

		return self::$field_types[ $type ];
	}
public static function register_field_type ( $ type , $ file = null ) { $ field_type = pods_transient_get ( 'pods_field_type_' . $ type ) ; if ( empty ( $ field_type ) || $ field_type [ 'type' ] != $ type || $ field_type [ 'file' ] != $ file ) { self :: field_loader ( $ type , $ file ) ; $ class_vars = get_class_vars ( get_class ( self :: $ loaded [ $ type ] ) ) ; // PHP 5.2.x workaround self :: $ field_types [ $ type ] = $ class_vars ; self :: $ field_types [ $ type ] [ 'file' ] = $ file ; pods_transient_set ( 'pods_field_type_' . $ type , self :: $ field_types [ $ type ] ) ; } else { self :: $ field_types [ $ type ] = $ field_type ; } return self :: $ field_types [ $ type ] ; }
Add a new Pod field type

@param string $type The new field type identifier
@param string $file The new field type class file location

@return array Field Type data

@since 2.3.0
Add a new Pod field type