You are here

function paymentform_field_info in Payment 7

Implements hook_field_info().

File

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

Code

function paymentform_field_info() {
  $field['paymentform'] = array(
    'label' => t('Payment form'),
    'description' => t('Adds a payment form to the <em>view</em> page.'),
    'instance_settings' => array(
      'currency_code' => 'XXX',
    ),
    'default_widget' => 'paymentform_line_item',
    'default_formatter' => 'paymentform',
  );
  return $field;
}