You are here

function _uc_addresses_db_have_saved_addresses in Ubercart Addresses 5.2

Same name and namespace in other branches
  1. 6 uc_addresses.module \_uc_addresses_db_have_saved_addresses()

Check to see if we saved any addresses for an anonymous user.

Return value

True if there are any saved addresses.

1 call to _uc_addresses_db_have_saved_addresses()
uc_addresses_order in ./uc_addresses.module
Use hook_order to add an address or two to the user's address list. For the moment, we save all addresses. I'd like to add an option to let the user select which addresses get saved.

File

./uc_addresses.module, line 1327

Code

function _uc_addresses_db_have_saved_addresses() {
  return isset($_SESSION['uc_addresses_saved_addresses']) && is_array($_SESSION['uc_addresses_saved_addresses']);
}