Delete
mixed CEventMessage::Delete( int id )
The method removes the mail template. Returns an of CDBResult class object on success, or false otherwise. Static method.
Parameters
Parameter | Description |
---|---|
id | Template ID. |
See Also
Examples of use
<? 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(); } ?>
© «Bitrix24», 2001-2024