You are here

function mailchimp_ecommerce_show_error in Mailchimp E-Commerce 7

Helper function to show an error message for admin users.

23 calls to mailchimp_ecommerce_show_error()
mailchimp_ecommerce_add_cart in ./mailchimp_ecommerce.module
Adds a new cart to the current Mailchimp store.
mailchimp_ecommerce_add_cart_line in ./mailchimp_ecommerce.module
Adds a line to a cart in the current Mailchimp store.
mailchimp_ecommerce_add_customer in ./mailchimp_ecommerce.module
Add a new customer to Mailchimp.
mailchimp_ecommerce_add_order in ./mailchimp_ecommerce.module
Adds a new order to the current Mailchimp store.
mailchimp_ecommerce_add_product in ./mailchimp_ecommerce.module
Adds a product to Mailchimp.

... See full list

File

./mailchimp_ecommerce.module, line 1349
Mailchimp eCommerce core functionality.

Code

function mailchimp_ecommerce_show_error($message) {
  if (user_access('administer mailchimp')) {
    drupal_set_message($message, 'error');
  }
}