You are here

function simpleads_campaigns_simpleads_campaign_complete in SimpleAds 7

Same name and namespace in other branches
  1. 7.2 modules/simpleads_campaigns/simpleads_campaigns.module \simpleads_campaigns_simpleads_campaign_complete()

Implements hook_simpleads_campaign_complete().

File

modules/simpleads_campaigns/simpleads_campaigns.module, line 222

Code

function simpleads_campaigns_simpleads_campaign_complete($node) {
  if (is_object($node)) {
    $node->status = 0;
    $node->field_ad_status[$node->language][0]['value'] = 0;
    node_save($node);
  }
}