function theme_uc_order_pane_line_items in Ubercart 7.3
1 theme call to theme_uc_order_pane_line_items()
- uc_order_pane_line_items in uc_order/
uc_order.order_pane.inc - Handles the "Line Items" order pane.
File
- uc_order/
uc_order.order_pane.inc, line 784 - 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;
}