You are here

function payment_method_form_add_access in Payment 7

Menu access callback for payment_method_form_add().

Parameters

string $controller_class_name: The name of the controller class the current user wants to add a payment method with.

Return value

boolean

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

File

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

Code

function payment_method_form_add_access(PaymentMethodController $controller) {
  $payment_method = new PaymentMethod(array(
    'controller' => $controller,
  ));
  return payment_method_access('create', $payment_method);
}