You are here

public function FeedsCommercePricelistItemProcessor::configForm in Commerce Pricelist 7

Override parent::configForm().

File

commerce_pricelist_feeds/plugins/FeedsCommercePricelistItemProcessor.inc, line 93
FeedsUserProcessor class.

Class

FeedsCommercePricelistItemProcessor
Feeds processor plugin. Create users from feed items.

Code

public function configForm(&$form_state) {
  $form = parent::configForm($form_state);
  $form['is_active'] = array(
    '#type' => 'radios',
    '#title' => t('Status'),
    '#description' => t('Select whether pricelist_items should be imported active or not.'),
    '#options' => array(
      0 => t('Inactive'),
      1 => t('Active'),
    ),
    '#default_value' => $this->config['is_active'],
  );
  $form['is_attached'] = array(
    '#type' => 'radios',
    '#title' => t('Attach to pricelist form'),
    '#description' => t('Should this importer be attached to th pricelist form.'),
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
    '#default_value' => $this->config['is_attached'],
  );
  $form['convert_price'] = array(
    '#type' => 'radios',
    '#title' => t('Convert price to minor currency on import'),
    '#description' => t('Should the price be multiplied by 100 or rounded to nearest integer?'),
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
    '#default_value' => $this->config['convert_price'],
  );
  $form['convert_dates'] = array(
    '#type' => 'radios',
    '#title' => t('Convert dates to Unix timestamp'),
    '#description' => t('Should we attempt to convert the dates?'),
    '#options' => array(
      0 => t('No'),
      1 => t('Yes'),
    ),
    '#default_value' => $this->config['convert_dates'],
  );
  return $form;
}