You are here

function uc_op_products_edit_table in Ubercart 7.3

TAPIr table for products pane on the order edit page.

1 string reference to 'uc_op_products_edit_table'
uc_order_edit_products_form in uc_order/uc_order.order_pane.inc
Form to allow ordered products' data to be changed.

File

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

Code

function uc_op_products_edit_table() {
  $table = array(
    '#type' => 'tapir_table',
    '#tree' => TRUE,
    '#attributes' => array(
      'id' => 'order-edit-products',
      'class' => array(
        'order-pane-table',
      ),
    ),
  );
  $table['#columns']['remove'] = array(
    'cell' => t('Remove'),
    'weight' => 0,
  );
  $table['#columns']['qty'] = array(
    'cell' => theme('uc_qty_label'),
    'weight' => 1,
  );
  $table['#columns']['title'] = array(
    'cell' => t('Name'),
    'weight' => 2,
  );
  $table['#columns']['model'] = array(
    'cell' => t('SKU'),
    'weight' => 3,
  );
  $table['#columns']['weight'] = array(
    'cell' => t('Weight'),
    'weight' => 4,
  );
  $table['#columns']['weight_units'] = array(
    'cell' => t('Units'),
    'weight' => 5,
  );
  $table['#columns']['cost'] = array(
    'cell' => t('Cost'),
    'weight' => 6,
  );
  $table['#columns']['price'] = array(
    'cell' => t('Price'),
    'weight' => 7,
  );
  return $table;
}