You are here

function uc_extra_fields_pane_weight_uc_cart_checkout_form_alter in Extra Fields Checkout Pane 6.2

uc_extra_fields_pane_weight_uc_cart_checkout_form_alter(). Applies ordering to address fields following the 'uc_address_fields_weight'-settings.

_state @access private

Parameters

array $form:

Return value

void

1 call to uc_extra_fields_pane_weight_uc_cart_checkout_form_alter()
uc_extra_fields_pane_form_uc_cart_checkout_form_alter in ./uc_extra_fields_pane.module
Implementation of hook_form_FORM_ID_alter(). Applies ordering to address fields following the 'uc_address_fields_weight'-settings.

File

includes/weights.inc, line 101
These functions adds weight to the address fields, so it becomes possible to change the order of the address fields.

Code

function uc_extra_fields_pane_weight_uc_cart_checkout_form_alter(&$form, $form_state) {

  // Apply weight for delivery fields (fieldnames are prefixed with 'delivery_')
  _uc_extra_fields_pane_applyWeights($form['panes']['delivery'], 'delivery_');

  // Apply weight for billing fields (fieldnames are prefixed with 'billing_')
  _uc_extra_fields_pane_applyWeights($form['panes']['billing'], 'billing_');
}