You are here

function uc_cart_nodeapi in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_cart/uc_cart.module \uc_cart_nodeapi()

Implements hook_nodeapi().

File

uc_cart/uc_cart.module, line 305

Code

function uc_cart_nodeapi(&$node, $op, $arg3, $arg4) {
  if (uc_product_is_product($node->type)) {
    switch ($op) {
      case 'delete':
        db_query("DELETE FROM {uc_cart_products} WHERE nid = %d", $node->nid);
        break;
    }
  }
}