function uc_order_field_extra_fields in Ubercart 7.3
Implements hook_field_extra_fields().
File
- uc_order/
uc_order.module, line 584
Code
function uc_order_field_extra_fields() {
$panes = module_invoke_all('uc_order_pane');
$extra = array();
foreach ($panes as $id => $pane) {
$extra_field = array(
'label' => $pane['title'],
'description' => $pane['desc'],
'weight' => $pane['weight'],
);
if (in_array('edit', $pane['show'])) {
$extra['uc_order']['uc_order']['form'][$id] = $extra_field;
}
if (in_array('view', $pane['show']) || in_array('customer', $pane['show'])) {
$extra['uc_order']['uc_order']['display'][$id] = $extra_field;
}
}
return $extra;
}