You are here

function mailchimp_ecommerce_validate_customer in Mailchimp E-Commerce 7

Same name and namespace in other branches
  1. 8 mailchimp_ecommerce.module \mailchimp_ecommerce_validate_customer()

Determines if customer data is valid.

Parameters

array $customer: Array of customer data.

Return value

bool TRUE if customer data is valid.

3 calls to mailchimp_ecommerce_validate_customer()
mailchimp_ecommerce_add_cart in ./mailchimp_ecommerce.module
Adds a new cart to the current Mailchimp store.
mailchimp_ecommerce_add_order in ./mailchimp_ecommerce.module
Adds a new order to the current Mailchimp store.
mailchimp_ecommerce_queue_process in ./mailchimp_ecommerce.module
Worker function to process a Mailchimp eCommerce queue item.

File

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

Code

function mailchimp_ecommerce_validate_customer(array $customer) {
  return isset($customer['id']) && !empty($customer['id']);
}