Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add this to the switch( $format ) statement in fpropdf_format_field() /format.php ~line 429
- case 'address':
- $v = maybe_unserialize( $v );
- if ( ! is_array( $v ) )
- break;
- $address = '';
- foreach ( $v as $key => $this_value ) {
- switch ( $key ) {
- case 'line1':
- case 'line2':
- $address .= $this_value . "\n";
- break;
- case 'city':
- $address .= $this_value;
- break;
- case 'state':
- $address .= isset( $v['city'] ) ? ', ' . $this_value : $this_value;
- break;
- case 'zip':
- $address .= isset( $v['state'] ) || isset( $v['city'] ) ? ' '. $this_value . "\n" : $this_value . "\n";
- break;
- default:
- $address .= $this_value;
- break;
- }
- }
- $v = $address;
- break;
Add Comment
Please, Sign In to add comment