You are here

public function UcAddressesAddressBook::deleteAddressByName in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 class/UcAddressesAddressBook.class.php \UcAddressesAddressBook::deleteAddressByName()

Deletes an address by name.

@access public

Parameters

string $name: The nickname of the address.

Return value

boolean TRUE if the address is deleted. FALSE otherwise.

Throws

UcAddressesDbException

File

class/UcAddressesAddressBook.class.php, line 523
Contains the UcAddressesAddressBook class.

Class

UcAddressesAddressBook
The address book class

Code

public function deleteAddressByName($name) {
  return $this
    ->deleteOne(self::BY_NAME, $name);
}