/[drupal]/contributions/modules/sale/sale.module
ViewVC logotype

Diff of /contributions/modules/sale/sale.module

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

revision 1.1.2.6, Mon Jul 30 17:13:36 2007 UTC revision 1.1.2.7, Mon Jul 30 17:15:23 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: sale.module,v 1.1.2.5 2007/07/18 18:04:49 darrenoh Exp $  // $Id: sale.module,v 1.1.2.6 2007/07/30 17:13:36 darrenoh Exp $
3    
4  /**  /**
5   * Implementation of hook_help().   * Implementation of hook_help().
# Line 144  function sale_link_alter(&$node, &$links Line 144  function sale_link_alter(&$node, &$links
144   */   */
145  function sale_cron() {  function sale_cron() {
146    if (module_exists('cart')) {    if (module_exists('cart')) {
147      db_query("DELETE FROM {ec_cart} WHERE nid IN(SELECT nid FROM {sale_product} WHERE sale_closes = 1 AND sale_closing_date < %d)", time());      db_query("DELETE FROM {ec_cart} WHERE nid IN(SELECT nid FROM {sale_items} WHERE sale_closes = 1 AND sale_closing_date < %d)", time());
148      cache_clear_all();      cache_clear_all();
149    }    }
150  }  }

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

  ViewVC Help
Powered by ViewVC 1.1.2