M2. Group

Group created

Called when new group is created.

Database

Parameters

Returned value

available unless hook activated by drwcs.new_group() function

login—login name of administrator

id—group ID

name—group name

pid—parent group ID

ignored

Procedure text:

--[[

Called:

 when new group created

 

Database:

 available

 

Parameters:

 login      administrator`s login name

 id         group ID

 name       group name

 pid        parent group ID

 

Returned value:

 ignored

 

]]

 

local args = ... -- args.login, args.id, args.name, args.pid

Group deleted

Called when group is deleted.

Database

Parameters

Returned value

available

login—login name of administrator

id—group ID

name—group name

ignored

Procedure text:

--[[

Called:

 when group deleted

 

Database:

 available

 

Parameters:

 login      administrator`s login name

 id         group ID

 name       group name

 

Returned value:

 ignored

 

]]

 

local args = ... -- args.login, args.id, args.name

Group properties changed

Called when group properties are changed.

Database

Parameters

Returned value

available

login—login name of administrator

id—group ID

name—group name

descr—group description

pid—parent group ID

ignored

Procedure text:

--[[

Called:

 when group properties changed

 

Database:

 available

 

Parameters:

 login      administrator`s login name

 id         group ID

 name       group name

 descr      group description

 pid        parent group ID

 

Returned value:

 ignored

 

]]

 

local args = ... -- args.login, args.id, args.name, args.descr, args.pid