You are here

function op_products_edit_table in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_order/uc_order.module \op_products_edit_table()

TAPIr table for products pane on the order edit page.

See also

uc_order_edit_products_form()

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

File

uc_order/uc_order.module, line 1052

Code

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