CAdvContract :: DeleteSiteLink: Bitrix method

      
<?php 
//  CAdvContract :: DeleteSiteLink()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:1095

    
public static function DeleteSiteLink($CONTRACT_ID)
    {
        
$err_mess = (CAdvContract_all::err_mess())."<br>Function: DeleteSiteLink<br>Line: ";
        global 
$DB;
        
$CONTRACT_ID intval($CONTRACT_ID);
        if (
$CONTRACT_ID<=0)
            return 
false;
        
$strSql "DELETE FROM b_adv_contract_2_site WHERE CONTRACT_ID = $CONTRACT_ID";
        
$DB->Query($strSqlfalse$err_mess.__LINE__);
        return 
true;
    }