function commerce_shipping_pane_settings_form in Commerce Shipping 7.2
Checkout pane callback: returns the shipping service pane's settings form.
File
- includes/
commerce_shipping.checkout_pane.inc, line 11 - Callback functions for the shipping module's checkout panes.
Code
function commerce_shipping_pane_settings_form($checkout_pane) {
$form = array();
$form['commerce_shipping_pane_require_service'] = array(
'#type' => 'checkbox',
'#title' => t('Require a shipping service at all times, preventing checkout if none are available.'),
'#default_value' => variable_get('commerce_shipping_pane_require_service', FALSE),
);
$form['commerce_shipping_recalculate_services'] = array(
'#type' => 'checkbox',
'#title' => t('Calculate shipping rates via AJAX as addresses are updated on the checkout form.'),
'#description' => t('Calculation is only triggered when all required fields have been entered and the shipping services pane is visible on the page.'),
'#default_value' => variable_get('commerce_shipping_recalculate_services', TRUE),
);
return $form;
}