Index: auction.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/contrib/auction/auction.module,v
retrieving revision 1.19.2.3.2.1.2.10
diff -u -r1.19.2.3.2.1.2.10 auction.module
--- auction.module	15 Feb 2007 07:06:51 -0000	1.19.2.3.2.1.2.10
+++ auction.module	17 Feb 2007 18:50:51 -0000
@@ -230,14 +230,16 @@
  * 
  */
 function auction_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
-switch ($op && isset($node->ptype) && $node->ptype == 'auction') {
-  case 'view':
-    global $user;
-    if (!$teaser) {
-      $form = drupal_get_form('product_auction_view_form',$node,$user);
-      $node->content['body']['#value'] .= $form; // it appends rendered form to node body (node->body go through filters)  	 
-    }  	 
-  }   
+  if (isset($node->ptype) && $node->ptype == 'auction') {
+    switch ($op) {
+    case 'view':
+      global $user;
+      if (!$teaser) {
+        $form = drupal_get_form('auction_view_form',$node,$user);
+        $node->content['body']['#value'] .= $form; // it appends rendered form to node body (node->body go through filters)
+      }
+    }
+  }
 }
 
 /**
@@ -493,8 +495,8 @@
  *   submit element). $form['theme'] contains the non-form data.
  *
  */
-function theme_product_auction_view_form($form) {
-  
+function theme_auction_view_form($form) {
+
   drupal_set_title(t('Bidding History'));
   $output = '<p class="auction-message">'. $form['theme']['#message'] .'</p>';
 
@@ -524,7 +526,7 @@
  *   submit element). Array['theme'] contains the non-form data.
  */
 
-function product_auction_view_form($node,$user){
+function auction_view_form($node,$user){
 
   /* Build some variables for theming. */
   $high_bid = auction_bid_current($node->nid);
