You are here

function uc_addresses_blank_address in Ubercart Addresses 5.2

Same name and namespace in other branches
  1. 6 uc_addresses_address_pane.inc \uc_addresses_blank_address()

Create a blank address. This is the address we use when first displaying a form used to add an address.

Return value

A blank address object

1 call to uc_addresses_blank_address()
uc_addresses_pane_address in ./uc_addresses_address_pane.inc
Create, edit, process or view the Address pane.

File

./uc_addresses_address_pane.inc, line 201
This file contains the callbacks for the default address panes and their corresponding helper functions.

Code

function uc_addresses_blank_address() {
  $address = new stdClass();
  $address->first_name = '';
  $address->last_name = '';
  $address->company = '';
  $address->street1 = '';
  $address->street2 = '';
  $address->city = '';
  $address->zone = '';
  $address->postal_code = '';
  $address->country = '';
  $address->phone = '';
  $address->address_name = '';
  $address->is_default = false;
  return $address;
}