function uc_addresses_settings_form in Ubercart Addresses 5.2
Same name and namespace in other branches
- 5 uc_addresses.module \uc_addresses_settings_form()
- 6.2 uc_addresses.admin.inc \uc_addresses_settings_form()
- 6 uc_addresses.admin.inc \uc_addresses_settings_form()
- 7 uc_addresses.admin.inc \uc_addresses_settings_form()
1 string reference to 'uc_addresses_settings_form'
- uc_addresses_menu in ./
uc_addresses.module - Implementation of hook_menu().
File
- ./
uc_addresses.module, line 604
Code
function uc_addresses_settings_form() {
$form['user'] = array(
'#type' => 'fieldset',
'#title' => t('User settings'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['user']['uc_addresses_default_billing_address'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically fill in the billing address with the user\'s default address.'),
'#default_value' => variable_get('uc_addresses_default_billing_address', TRUE),
);
$form['user']['uc_addresses_default_delivery_address'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically fill in the delivery address with the user\'s default address.'),
'#default_value' => variable_get('uc_addresses_default_delivery_address', TRUE),
);
$form['user']['uc_addresses_require_address'] = array(
'#type' => 'checkbox',
'#title' => t('Require that an address be entered during registration'),
'#default_value' => variable_get('uc_addresses_require_address', TRUE),
);
return system_settings_form($form);
}