You are here

function uc_store_encryption_errors in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.module \uc_store_encryption_errors()
  2. 5 uc_store/uc_store.module \uc_store_encryption_errors()
  3. 6.2 uc_store/uc_store.module \uc_store_encryption_errors()

Logs encryption errors to watchdog.

Parameters

$crypt: The object used to perform your encryption/decryption.

$module: The module name to specify in the watchdog notices.

6 calls to uc_store_encryption_errors()
uc_authorizenet_payment_gateway_settings_submit in payment/uc_authorizenet/uc_authorizenet.module
Submit handler for payment gateway settings form to encrypt fields.
uc_cybersource_payment_gateway_settings_submit in payment/uc_cybersource/uc_cybersource.module
Submit handler for payment gateway settings form to encrypt fields.
uc_payment_method_credit in payment/uc_credit/uc_credit.module
Callback function for the Credit Card payment method.
_uc_authorizenet_login_data in payment/uc_authorizenet/uc_authorizenet.module
Decrypts the login data for using Auth.Net APIs.
_uc_credit_save_cc_data_to_order in payment/uc_credit/uc_credit.module
Saves a CC data array to an order's data array.

... See full list

File

uc_store/uc_store.module, line 1747
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_encryption_errors(&$crypt, $module) {
  $errors = $crypt
    ->getErrors();
  if (!empty($errors)) {
    foreach ($errors as $message) {
      $items[] = $message;
    }
    watchdog('encryption', 'Encryption failed. !messages', array(
      '!messages' => theme('item_list', array(
        'items' => $items,
      )),
    ), WATCHDOG_ERROR);
  }
}