You are here

function pay_form_displays in Pay 7

Same name and namespace in other branches
  1. 6 pay.module \pay_form_displays()

List of meaningful ways in which a payment form can appear.

1 call to pay_form_displays()
pay_form_displays_list in ./pay.module
Name/value List of meaningful ways in which a payment form can appear.

File

./pay.module, line 437
Pay module allows for accepting payments using pluggable payment backends.

Code

function pay_form_displays() {
  static $displays = array();
  if (!$displays) {
    $displays['pay_form_default'] = array(
      'title' => t('Default display of entire form'),
    );
    $displays['pay_form_amount'] = array(
      'title' => t('Amount only, with link to payment form'),
    );
    $displays['pay_form_link'] = array(
      'title' => t('Link to payment form'),
    );
    drupal_alter('pay_form_displays', $displays);
  }
  return $displays;
}