function uc_extra_fields_pane_form_uc_order_edit_form_alter in Extra Fields Checkout Pane 6.2
Implementation of hook_form_FORM_ID_alter(). Applies ordering to address fields following the 'uc_address_fields_weight'-settings.
_state @access private
Parameters
array $form:
File
- ./
uc_extra_fields_pane.module, line 1138 - Module: uc_extra_fields_pane.module
Code
function uc_extra_fields_pane_form_uc_order_edit_form_alter(&$form, $form_state) {
module_load_include('inc', 'uc_extra_fields_pane', 'includes/weights');
// Apply weight for delivery fields (fieldnames are prefixed with 'delivery_')
_uc_extra_fields_pane_applyWeights($form['ship_to'], 'delivery_');
// Apply weight for billing fields (fieldnames are prefixed with 'billing_')
_uc_extra_fields_pane_applyWeights($form['bill_to'], 'billing_');
}