public function FeedsUcAddressesProcessor::configForm in Ubercart Addresses 7
Overrides parent::configForm().
File
- feeds/
FeedsUcAddressesProcessor.inc, line 87 - Contains the FeedsUcAddressesProcessor class.
Class
- FeedsUcAddressesProcessor
- A processor for importing data belonging to an Ubercart Addresses address.
Code
public function configForm(&$form_state) {
$form = parent::configForm($form_state);
unset($form['input_format']);
// Setting to automatically make addresses default billing and default shipping.
$form['mark_as_default_billing'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically mark addresses as default billing.'),
'#description' => t('If enabled, all users for which addresses are imported, get one default billing address.'),
'#default_value' => $this->config['mark_as_default_billing'],
);
$form['mark_as_default_shipping'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically mark addresses as default shipping.'),
'#description' => t('If enabled, all users for which addresses are imported, get one default shipping address.'),
'#default_value' => $this->config['mark_as_default_shipping'],
);
return $form;
}