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.

Return

Not used.

See Also

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

Example

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


© «Bitrix24», 2001-2024
Up