public function FeedsCommerceCustomerProfileProcessor::configForm in Commerce Feeds 7
Override parent::configForm().
File
- plugins/
FeedsCommerceCustomerProfileProcessor.inc, line 81 - Class definition of FeedsCommerceCustomerProfileProcessor.
Class
- FeedsCommerceCustomerProfileProcessor
- Creates profiles from feed items.
Code
public function configForm(&$form_state) {
$types = commerce_customer_profile_type_get_name();
array_walk($types, 'check_plain');
$form = parent::configForm($form_state);
unset($form['input_format']);
$form['customer_profile_type'] = array(
'#type' => 'select',
'#title' => t('Customer profile type'),
'#description' => t('Select the customer profile type for the profiles to be created. <strong>Note:</strong> Users with "import !feed_id feeds" permissions will be able to <strong>import</strong> profiles of the customer type selected here regardless of the customer profile level permissions. Further, users with "clear !feed_id permissions" will be able to <strong>delete</strong> imported profiles regardless of their customer profile level permissions.', array(
'!feed_id' => $this->id,
)),
'#options' => $types,
'#default_value' => $this->config['customer_profile_type'],
);
return $form;
}