You are here

function paymentform_field_instance_settings_form in Payment 7

Implements hook_field_instance_settings_form().

File

modules/paymentform/paymentform.module, line 57
Hook implementations and general functions.

Code

function paymentform_field_instance_settings_form($field, $instance) {
  $form = array();
  if ($instance['widget']['type'] == 'paymentform_line_item') {
    $form['currency_code'] = array(
      '#type' => 'select',
      '#title' => t('Currency'),
      '#options' => payment_currency_options(),
      '#default_value' => $instance['settings']['currency_code'],
      '#required' => TRUE,
    );
  }
  return $form;
}