theme_uc_pane_sort_table($form)Theme a pane sorting form into a table!
contributions/ubercart/uc_store/uc_store.module, line 2534
<?php
function theme_uc_pane_sort_table($form) {
$prefix = $form['#pane_prefix'];
if (isset($form['#table_attributes']) && is_array($form['#table_attributes'])) {
$attributes = $form['#table_attributes'];
}
else {
$attributes = array();
}
$header = array(t('Enabled'), t('Title'), t('Weight'));
foreach (element_children($form) as $pane_id) {
$rows[] = array(
array(
'data' => drupal_render($form[$pane_id][$prefix .'_'. $pane_id .'_enabled']),
'align' => 'center'
),
drupal_render($form[$pane_id]['title']),
drupal_render($form[$pane_id][$prefix .'_'. $pane_id .'_weight']),
);
}
return theme('table', $header, $rows, $attributes) .'<br />';
}
?>