| 1 |
<?php |
<?php |
| 2 |
// $Id: ec_product.module,v 1.16.2.71 2009/10/18 14:18:20 davea Exp $ |
// $Id: ec_product.module,v 1.16.2.72 2009/10/22 03:41:07 davea Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1347 |
*/ |
*/ |
| 1348 |
function ec_product_save($node) { |
function ec_product_save($node) { |
| 1349 |
if (!empty($node->ptype)) { |
if (!empty($node->ptype)) { |
| 1350 |
drupal_write_record('ec_product', $node, 'vid'); |
if (db_result(db_query('SELECT vid FROM {ec_product} WHERE vid = %d', $node->vid))) { |
| 1351 |
if (db_affected_rows()) { |
drupal_write_record('ec_product', $node, 'vid'); |
| 1352 |
ec_product_invoke_productapi($node, 'update'); |
ec_product_invoke_productapi($node, 'update'); |
| 1353 |
ec_product_invoke_feature_all($node, 'update'); |
ec_product_invoke_feature_all($node, 'update'); |
| 1354 |
} |
} |