function uc_product_insert in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_product/uc_product.module \uc_product_insert()
- 6.2 uc_product/uc_product.module \uc_product_insert()
Implements hook_insert().
1 call to uc_product_insert()
- uc_product_uc_product_class in uc_product/
uc_product.module - Implements hook_uc_product_class().
File
- uc_product/
uc_product.module, line 533 - The product module for Ubercart.
Code
function uc_product_insert($node) {
if (isset($node->dim_length)) {
$node->length = $node->dim_length;
}
if (isset($node->dim_width)) {
$node->width = $node->dim_width;
}
if (isset($node->dim_height)) {
$node->height = $node->dim_height;
}
drupal_write_record('uc_products', $node);
}