Skip navigation
Help

theme_uc_order_pane_line_items

7 uc_order.order_pane.inc theme_uc_order_pane_line_items($variables)

Related topics

File

ubercart/uc_order/uc_order.order_pane.inc, line 782
This file contains the callbacks for the default order panes supplied with Ubercart and their corresponding helper functions.

Code

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

  $output = '<table class="line-item-table">';
  foreach (element_children($form) as $field) {
    $form[$field]['title']['#title'] = '';
    $form[$field]['amount']['#title'] = '';
    $output .= '<tr><td class="li-title">'
      . drupal_render($form[$field]['li_id'])
      . drupal_render($form[$field]['remove'])
      . drupal_render($form[$field]['title'])
      . ':</td><td class="li-amount">'
      . drupal_render($form[$field]['amount'])
      . '</td></tr>';
  }
  $output .= '</table>' . drupal_render_children($form);

  return $output;
}