original_string: public static function transform_image_fields( &$field ) {
  		if ( empty( $field['value'] ) ) {
  			return $field['value'];
  		}
  
  		foreach ( $field['sub_fields'] as $sub_field ) {
  			if ( 'image' === $sub_field['type'] && 'id' === $sub_field['return_format'] ) {
  				foreach ( $field['value'] as $id => $item ) {
  					$field['value'][ $id ][ $sub_field['name'] ] =
  						Image::get_image_fields( $field, $item[ $sub_field['name'] ], $sub_field['name'] );
  				}
  			}
  		}
  	}
code: public static function transform_image_fields( &$field ) {
  		if ( empty( $field['value'] ) ) {
  			return $field['value'];
  		}
  
  		foreach ( $field['sub_fields'] as $sub_field ) {
  			if ( 'image' === $sub_field['type'] && 'id' === $sub_field['return_format'] ) {
  				foreach ( $field['value'] as $id => $item ) {
  					$field['value'][ $id ][ $sub_field['name'] ] =
  						Image::get_image_fields( $field, $item[ $sub_field['name'] ], $sub_field['name'] );
  				}
  			}
  		}
  	}
code_tokens: public static function transform_image_fields ( & $ field ) { if ( empty ( $ field [ 'value' ] ) ) { return $ field [ 'value' ] ; } foreach ( $ field [ 'sub_fields' ] as $ sub_field ) { if ( 'image' === $ sub_field [ 'type' ] && 'id' === $ sub_field [ 'return_format' ] ) { foreach ( $ field [ 'value' ] as $ id => $ item ) { $ field [ 'value' ] [ $ id ] [ $ sub_field [ 'name' ] ] = Image :: get_image_fields ( $ field , $ item [ $ sub_field [ 'name' ] ] , $ sub_field [ 'name' ] ) ; } } } }
docstring: Do the image size transform for an image sub fields.
  
  @param string $field			Field.
  @return array
docstring_tokens: Do the image size transform for an image sub fields .