Difference between revisions of "OnAfterBanningUser"

(Created page with "===Description=== This event will be triggered when the user is banned. ===Params=== An array of two items; user id who performed the banning action and the user id which is...")
 
(Example)
Line 9: Line 9:
 
function OnAfterBanningUser( --what here?-- )  
 
function OnAfterBanningUser( --what here?-- )  
 
{
 
{
     CNotificationLibrary::add( $cmd , $actor , $target , $subject , $body , $template , $params );
+
     // How do i get id of user that made the ban and the user who is banned
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 
<br />
 
<br />

Revision as of 03:22, 5 July 2016

Description

This event will be triggered when the user is banned.

Params

An array of two items; user id who performed the banning action and the user id which is banned.

Example

function OnAfterBanningUser( --what here?-- ) 
{
     // How do i get id of user that made the ban and the user who is banned
}