--- trunk/5.x/projects/sites/scw/modules/ubercart/uc_discounts/uc_discounts.module (revision 443) +++ trunk/5.x/projects/sites/scw/modules/ubercart/uc_discounts/uc_discounts.module (revision 449) @@ -247,6 +247,5 @@ return; } - $pane = uc_cart_checkout_new_pane('discounts'); - $pane->fields['pane']['description'] = uc_cart_checkout_pane_description('discounts', t('The following discounts will be applied to your order:')); + $description = t('The following discounts will be applied to your order:'); // create discounts table @@ -276,12 +275,10 @@ $table = theme('table', $header, $rows); - $pane->fields['pane']['discounts'] = array( - '#value' => $table, - ); + $contents['discounts'] = array('#value' => $table ); // add line item $script = "set_line_item('discount', 'Discount', -$discount_total, 1)"; drupal_add_js("\$(document).ready( function() { ". $script ." } );", 'inline'); - return $pane; + return array('description' => $description, 'contents' => $contents, 'next-button' => FALSE); case 'review':