Bitrix Site Manager

OnIBlockElementDelete

user_defined_handler(
 int ID 
);

Called when an information block element is deleted.

Parameters

ParameterDescription
ID Information block element ID.

Example


<?
// Connect the handler
RegisterModuleDependences("iblock", 
                          "OnIBlockElementDelete", 
                          "catalog", 
                          "CCatalogProduct", 
                          "OnIBlockElementDelete");

// Implement the handler
class CCatalogProduct
{
  * * *

  function OnIBlockElementDelete($PRODUCT_ID)
  {
    // Now the handler is called upon deletion
    global $DB;
    echo "Deleting...";
    return True;
  }
}
?>