Documentation

Delete

bool
CTaskTemplates::Delete(
  ID
);

The method deletes template with ID.

Method parameters

Parameter Description
IDID of deleted template

Returned value

The method returns true when the template is deleted successfully, otherwise returns false. 

Examples of use

<?
if (CModule::IncludeModule("tasks"))
{

$ID = 1;

if($USER->IsAdmin())
{
CTaskTemplates::Delete($ID);
}

}
?>


© «Bitrix24», 2001-2024