function uc_store_encryption_errors in Ubercart 5
Same name and namespace in other branches
- 8.4 uc_store/uc_store.module \uc_store_encryption_errors()
- 6.2 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.
10 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 - Implementation of hook_cron().
- uc_credit_encrypt_existing in payment/
uc_credit/ uc_credit.module - uc_credit_terminal_form_submit in payment/
uc_credit/ uc_credit.module - uc_cybersource_payment_gateway_settings_submit in payment/
uc_cybersource/ uc_cybersource.module
File
- uc_store/
uc_store.module, line 2854 - Contains global Ubercart functions and store administration functionality.
Code
function uc_store_encryption_errors(&$crypt, $module) {
if (!empty($crypt->errors)) {
foreach ($crypt->errors as $message) {
$items[] = $message;
}
watchdog('encryption', t('Encryption failed. !messages', array(
'!messages' => theme('item_list', $items),
)), WATCHDOG_ERROR);
}
}