handler function( array arFields );
The event OnIBlockElementAdd is called when adding an iblock element.
The event is called at the moment when all handlers have already finished modifying the data, data verification has been completed and the data itself is written into database. This event does not allow modifying the data. The main scenario of use - execute some code before handling the database and ensure that the data was modified in the database.
|arFields||Array of field values for the iblock element.|