Documentation

OnAfterGroupAdd

bool
EventHandler(
 array &arFields
);

The event fires in the method CGroup::Add after group is added. It can be used for actions, related to the group.

method parameters

Parameter Description
arFields List of (CGroup class) fields for added user group. The array contains the keyID with the added group ID.

Returned value

Not used.

See Also

  • [link= 6658419]CGroup[/link]
  • Events

Example of use

<?
AddEventHandler("main", "OnAfterGroupAdd", "MyOnAfterGroupAdd");
function MyOnAfterGroupAdd(&$arFields)
{
AddMessage2Log(print_r($arFields, true));
}?>


© «Bitrix24», 2001-2022
Up