You are here

function payment_method_form_add in Payment 7

Create a blank payment method and return its payment form.

Parameters

string $controller_class_name: The name of the controller class for which to create a payment method.

Return value

array A Drupal form.

1 string reference to 'payment_method_form_add'
payment_menu in ./payment.module
Implements hook_menu().

File

./payment.ui.inc, line 310
The Payment user interface.

Code

function payment_method_form_add($controller) {
  $payment_method = new PaymentMethod(array(
    'controller' => $controller,
  ));
  return drupal_get_form('payment_form_payment_method', $payment_method);
}