You are here

function paymentreference_field_info in Payment 7

Implements hook_field_info().

File

modules/paymentreference/paymentreference.module, line 110
Hook implementations and general functions.

Code

function paymentreference_field_info() {
  $field['paymentreference'] = array(
    'label' => t('Payment reference'),
    'description' => t('Adds a reference to a payment.'),
    'instance_settings' => array(
      'amount' => 0,
      'currency_code' => 'XXX',
      'description' => '',
    ),
    'default_widget' => 'paymentreference',
    'default_formatter' => 'paymentreference',
  );
  return $field;
}