bool
user_defined_handler(
int ID
);
Called before an information block is deleted.
Parameters
Parameter | Description |
ID |
Information block ID |
Return Values
The user-defined handler returns false to prevent the information block from
deletion.
Example
<?
// Connect the handler
RegisterModuleDependences("iblock",
"OnBeforeIBlockDelete",
"catalog",
"CCatalog",
"OnIBlockDelete");
// Implement the handler
class CCatalog
{
* * *
function OnBeforeIBlockDelete($ID)
{
// Information blocks cannot be deleted.
return false;
}
}
?>