function commerce_addressbook_delete_default_profile in Commerce Addressbook 7.3
Deletes the default customer profile for a given type.
Parameters
$uid: The uid of the user whose default profile should be deleted.
$type: The type of customer profile to delete.
1 call to commerce_addressbook_delete_default_profile()
- commerce_addressbook_commerce_customer_profile_delete in ./
commerce_addressbook.module - Implements hook_commerce_customer_profile_delete().
File
- ./
commerce_addressbook.module, line 321 - Defines addressbook functionality for customer profiles, allowing them to be reused and managed on a per-user basis.
Code
function commerce_addressbook_delete_default_profile($uid, $type) {
db_delete('commerce_addressbook_defaults')
->condition('uid', $uid)
->condition('type', $type)
->execute();
}