You are here

function pardot_campaign_load in Pardot Integration 7

Same name and namespace in other branches
  1. 6 pardot.module \pardot_campaign_load()
  2. 7.2 pardot.module \pardot_campaign_load()

Loads a Pardot campaign object.

Parameters

int $campaign: The campaign ID.

File

./pardot.module, line 285
Pardot integration module.

Code

function pardot_campaign_load($campaign) {
  return db_query('SELECT * FROM {pardot_campaign} WHERE campaign_id = :campaign_id', array(
    ':campaign_id' => $campaign,
  ))
    ->fetchObject();
}