You are here

function uc_usps_node_revision_delete in Ubercart 8.4

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

Implements hook_node_revision_delete().

File

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

Code

function uc_usps_node_revision_delete($node) {
  $connection = \Drupal::database();
  $connection
    ->delete('uc_usps_products')
    ->condition('vid', $node
    ->getRevisionId())
    ->execute();
}