You are here

function mailchimp_ecommerce_page_build in Mailchimp E-Commerce 7

Implements hook_page_build().

File

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

Code

function mailchimp_ecommerce_page_build(&$page) {
  $campaign_id = isset($_GET['mc_cid']) ? check_plain($_GET['mc_cid']) : '';
  if ($campaign_id) {
    $_SESSION['mc_cid'] = $campaign_id;
    $_SESSION['mc_landing_site'] = $_SERVER['HTTP_HOST'] . request_uri();
  }
}