Documentation

OnIBlockDelete

user_defined_handler(
 int ID 
);

The event OnIBlockDelete is 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
{
  * * *

  public static function OnIBlockDelete($ID)
  {
    // Now the handler is called when deleting
    return CCatalog::Delete($ID);
  }
}

?>
© «Bitrix24», 2001-2024