$row, 'class' => array('draggable'), ); } if (empty($rows)) { return ''; } drupal_add_tabledrag('uc-product-kit-item-table', 'order', 'sibling', 'uc-product-kit-item-ordering'); $output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'uc-product-kit-item-table'))); if (!empty($form['#description'])) { $output .= '
' . $form['#description'] . "
\n"; } return $output; } /** * Renders a product kit component. * * @ingroup themeable */ function theme_uc_product_kit_list_item($variables) { $product = $variables['product']; $node = node_load($product->nid); if (node_access('view', $node)) { $title = l($product->title, 'node/' . $product->nid); } else { $title = check_plain($product->title); } return theme('uc_qty', array('qty' => $product->qty)) . ' ' . $title; } /** * Wraps the "Add to Cart" form in a
. * * @ingroup themeable */ function theme_uc_product_kit_add_to_cart($variables) { $form = $variables['form']; $output = '
'; $output .= drupal_render($form); $output .= '
'; return $output; }