You are here

function cc::delete_campaign in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 class.cc.php \cc::delete_campaign()
  2. 6.2 class.cc.php \cc::delete_campaign()

Deletes a campaign.

@access public

File

./class.cc.php, line 1292
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

Code

function delete_campaign($id) {
  $this
    ->http_set_content_type('text/html');
  $this
    ->load_url("campaigns/{$id}", 'delete', array(), 204);
  if (intval($this->http_response_code) === 204) {
    return TRUE;
  }
  return FALSE;
}