/[drupal]/contributions/modules/ecommerce/ec_product/ec_product.module
ViewVC logotype

Diff of /contributions/modules/ecommerce/ec_product/ec_product.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16.2.72 by davea, Thu Oct 22 03:41:07 2009 UTC revision 1.16.2.73 by gordon, Tue Nov 10 05:33:33 2009 UTC
# Line 1  Line 1 
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
# Line 1347  function ec_product_delete($node, $revis Line 1347  function ec_product_delete($node, $revis
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      }      }

Legend:
Removed from v.1.16.2.72  
changed lines
  Added in v.1.16.2.73

  ViewVC Help
Powered by ViewVC 1.1.3