You are here

function uc_usps_node_delete in Ubercart 8.4

Same name and namespace in other branches
  1. 7.3 shipping/uc_usps/uc_usps.module \uc_usps_node_delete()

Implements hook_node_delete().

File

shipping/uc_usps/uc_usps.module, line 127
United States Postal Service (USPS) shipping quote module.

Code

function uc_usps_node_delete($node) {
  $connection = \Drupal::database();
  $connection
    ->delete('uc_usps_products')
    ->condition('nid', $node
    ->id())
    ->execute();
}