You are here

public function FeedsCommerceCouponProcessor::configForm in Commerce Feeds 7

Override parent::configForm().

File

plugins/FeedsCommerceCouponProcessor.inc, line 81
FeedsUserProcessor class.

Class

FeedsCommerceCouponProcessor
Feeds processor plugin. Create users from feed items.

Code

public function configForm(&$form_state) {
  $form = parent::configForm($form_state);
  $types = commerce_coupon_type_get_name();
  $form['coupon_type'] = array(
    '#type' => 'select',
    '#title' => t('Coupon type'),
    '#description' => t('Select the coupon type for the coupon to be created.'),
    '#options' => $types,
    '#default_value' => $this->config['coupon_type'],
  );
  $form['is_active'] = array(
    '#type' => 'radios',
    '#title' => t('Status'),
    '#description' => t('Select whether coupons should be imported active or not.'),
    '#options' => array(
      0 => t('Inactive'),
      1 => t('Active'),
    ),
    '#default_value' => $this->config['is_active'],
  );
  return $form;
}