function uc_store_encryption_errors in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_store/uc_store.module \uc_store_encryption_errors()
- 5 uc_store/uc_store.module \uc_store_encryption_errors()
- 7.3 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.
8 calls to uc_store_encryption_errors()
- uc_authorizenet_payment_gateway_settings_submit in payment/
uc_authorizenet/ uc_authorizenet.module - uc_credit_cron in payment/
uc_credit/ uc_credit.module - Implements hook_cron().
- uc_credit_terminal_form_submit in payment/
uc_credit/ uc_credit.admin.inc - Submit handler for credit terminal form.
- uc_cybersource_payment_gateway_settings_submit in payment/
uc_cybersource/ uc_cybersource.module - uc_payment_method_credit in payment/
uc_credit/ uc_credit.module - Callback function for the Credit Card payment method.
File
- uc_store/
uc_store.module, line 2098 - 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', $items),
), WATCHDOG_ERROR);
}
}