Documentation

OnBeforeSocNetMessagesAdd

bool handler function(
   array &arParams 
);
The event is called in the message creating method before before executing it and can be used to cancel the method or to re-define specific fields.

Parameters

ParameterDescription
arParams New record array of fields.

All parameters of this handler are links to original source variables. When you change a parameter within the handler, it changes the source variable received on fetch for handler function.

Returned value

To cancel the method, handler function must return false.


© «Bitrix24», 2001-2024