You are here

public function UcAddressesAddressBook::deleteAddressByName in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 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 524
Contains the UcAddressesAddressBook class.

Class

UcAddressesAddressBook
The address book class

Code

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