You are here

function theme_uc_coupon_automatic_discounts in Ubercart Discount Coupons 7.2

Same name and namespace in other branches
  1. 7.3 uc_coupon.module \theme_uc_coupon_automatic_discounts()
1 theme call to theme_uc_coupon_automatic_discounts()
uc_coupon_uc_cart_pane in ./uc_coupon.module
Implements hook_uc_cart_pane().

File

./uc_coupon.module, line 1092

Code

function theme_uc_coupon_automatic_discounts($variables) {
  $form = $variables['form'];

  /*
  $items = $form['discounts']['#items'];
  $title = isset($form['discounts']['#title']) ? $form['discounts']['#title'] : NULL;
  $rows = array();
  foreach($items as $item) {
    $rows[] = array($item);
  }
  $form['discounts'] = array(
    '#theme' => 'table',
    '#rows' => $rows,
  );
  if (isset($title)) {
    $form['discounts']['#header'] = array($title);
  }
  */
  return drupal_render_children($form);
}