Bitrix Site Manager

OnIBlockDelete

user_defined_handler(
 int ID 
);

Called at the moment an information block is deleted.

Parameters

ParameterDescription
ID Information block ID.

Example

<?
// Connect the handler
RegisterModuleDependences("iblock", 
                          "OnIBlockDelete", 
                          "catalog", 
                          "CCatalog", 
                          "OnIBlockDelete");

// Implement the handler
class CCatalog
{
  * * *

  function OnIBlockDelete($ID)
  {
    // Now the handler is called upon deletion
    return CCatalog::Delete($ID);
  }
}

?>