CAdvType::DeleteContractLink: Bitrix method

      
<?php 
//  CAdvType :: DeleteContractLink()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:5336

    
public static function DeleteContractLink($TYPE_SID)
    {
        
$err_mess = (CAdvType_all::err_mess())."<br>Function: DeleteContractLink<br>Line: ";
        global 
$DB;
        if (
strlen($TYPE_SID)<=0)
        {
            return 
false;
        }

        
$strSql "DELETE FROM b_adv_contract_2_type WHERE TYPE_SID = '".$DB->ForSql($TYPE_SID,255)."'";
        
$DB->Query($strSqlfalse$err_mess.__LINE__);
        return 
true;
    }