You are here

function payment_method_controller_load in Payment 7

Load a payment method controller().

Parameters

string $controller_class_name: The name of the controller class to load.

Return value

mixed Either a PaymentMethodController object or FALSE in case of errors.

17 calls to payment_method_controller_load()
PaymentGenerate::paymentMethod in ./payment.generate.inc
Generate a payment method.
PaymentmethodbasicTestPaymentMethodBasicControllerWebTestCase::testCRUD in modules/paymentmethodbasic/tests/paymentmethodbasic_test/tests/PaymentmethodbasicTestPaymentMethodBasicControllerWebTestCase.test
Test CRUD functionality.
paymentmethodbasic_payment_method_defaults in modules/paymentmethodbasic/paymentmethodbasic.install
Returns default payment methods.
PaymentMethodEntityController::attachLoad in ./payment.classes.inc
Overridden.
PaymentMethodEntityController::import in ./payment.classes.inc
Implements EntityAPIControllerInterface.

... See full list

File

./payment.module, line 842
Hook implementations and shared functions.

Code

function payment_method_controller_load($controller_class_name) {
  $controllers = payment_method_controller_load_multiple(array(
    $controller_class_name,
  ));
  return reset($controllers);
}