Bitrix Site Manager

CEventMessage::Delete

mixed
CEventMessage::Delete(
 int id
)

The method Delete removes the mail template. Returns an instance of CDBResult on success, or false otherwise.

Parameters

ParameterDescription
id the template ID

See Also

Example



<?
if(intval($del_id)>0 && $MAIN_RIGHT=="W")
{
    $emessage = new CEventMessage;
    $DB->StartTransaction();
    if(!$emessage->Delete(intval($del_id)))
    {
        $DB->Rollback();
        $strError.=GetMessage("DELETE_ERROR");
    }
    else $DB->Commit();
}
?>