function _stripe_error in Stripe 7
Helper function to log and display an error message, but only to users with administer stripe privileges.
3 calls to _stripe_error()
- stripe_admin_keys in ./
stripe.admin.inc - Menu callback: configure Stripe API Keys.
- stripe_libraries_postload_callback in ./
stripe.module - Post-load callback for the Stripe PHP Library.
- stripe_load_library in ./
stripe.module - Helper function to load the Stripe Library.
File
- ./
stripe.module, line 549 - stripe.module Drupal hooks used for integrating the Stripe service.
Code
function _stripe_error($message) {
if (user_access('administer stripe')) {
drupal_set_message($message, 'error');
}
watchdog('Stripe', $message, WATCHDOG_ERROR);
}