function PaymentMethodEntityController::import in Payment 7
Implements EntityAPIControllerInterface.
Parameters
$export: A serialized string in JSON format as produced by the export() method.
Overrides EntityAPIController::import
File
- ./
payment.classes.inc, line 723 - The API and related functions for executing and managing payments.
Class
- PaymentMethodEntityController
- Entity API controller for payment_method entities.
Code
function import($export) {
if ($payment = parent::import($export)) {
$payment->controller = payment_method_controller_load($payment->controller_class_name);
unset($payment->controller_class_name);
return $payment;
}
return FALSE;
}