function commerce_order_account_pane_settings_form in Commerce Core 7
Account pane: settings form callback.
File
- modules/
order/ includes/ commerce_order.checkout_pane.inc, line 12 - Checkout pane callback functions for the Order module.
Code
function commerce_order_account_pane_settings_form($checkout_pane) {
$form = array();
$form['commerce_order_account_pane_mail_double_entry'] = array(
'#type' => 'checkbox',
'#title' => t('Require double entry of email address.'),
'#description' => t('Forces anonymous users to enter their email address in two consecutive fields, which must have indentical values.'),
'#default_value' => variable_get('commerce_order_account_pane_mail_double_entry', FALSE),
);
$form['commerce_order_account_pane_auth_display'] = array(
'#type' => 'checkbox',
'#title' => t('Display the account information pane for authenticated users.'),
'#description' => t('If checked, the pane will show account information to authenticated users but not allow changes.'),
'#default_value' => variable_get('commerce_order_account_pane_auth_display', FALSE),
);
return $form;
}