Documentation

OnAfterIBlockElementDelete

handler function(
 array &arFields
);

The event OnAfterIBlockElementDelete is called after deleting an element and all related information from database.

Parameters

ParameterDescription
arFields Array of fields for iblock element.

Returned value

None.

Example

// file /bitrix/php_interface/init.php
// register the handler
AddEventHandler("iblock", "OnAfterIBlockElementDelete", Array("MyClass", "OnAfterIBlockElementDeleteHandler"));

class MyClass
{
    // create the event handler OnAfterIBlockElementDelete
    function OnAfterIBlockElementDeleteHandler($arFields)
    {
        // execute an action
     }
}


© «Bitrix24», 2001-2022
Up