You are here

function mailchimp_campaign_load in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_campaign/mailchimp_campaign.module \mailchimp_campaign_load()
  2. 7.2 modules/mailchimp_campaign/mailchimp_campaign.entity.inc \mailchimp_campaign_load()
  3. 7.3 modules/mailchimp_campaign/mailchimp_campaign.module \mailchimp_campaign_load()

Load a campaign by ID.

File

modules/mailchimp_campaign/mailchimp_campaign.module, line 1021
Module file for mailchimp_campaign.

Code

function mailchimp_campaign_load($cid, $reset = FALSE) {
  $campaign = mailchimp_campaign_load_multiple(array(
    $cid,
  ), array(), $reset);
  return $campaign ? $campaign[$cid] : FALSE;
}