You are here

function theme_uc_product_field_settings_form in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_product/uc_product.module \theme_uc_product_field_settings_form()

Displays the product field settings form.

See also

uc_product_field_settings_form()

File

uc_product/uc_product.admin.inc, line 287
Product administration menu items.

Code

function theme_uc_product_field_settings_form($form) {
  $header = array(
    t('Enable'),
    t('Product field'),
    t('List position'),
  );
  $rows = array();
  foreach (element_children($form['fields']) as $field) {
    $row = array();
    $row[] = drupal_render($form['fields'][$field]['enabled']);
    $row[] = drupal_render($form['fields'][$field]['title']);
    $row[] = drupal_render($form['fields'][$field]['weight']);
    $rows[] = $row;
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}