static NulData AfGroupSet int  af_user_id,
int  af_group_id,
bool  value_to_set
[static]
 

Allows to set a relation between the given group and user according to the status for the given value_to_set.

This function is a short way to afdal_af_kernel_af_user_af_group_add and afdal_af_kernel_af_user_af_group_remove function. This function allows to make a user to belong to the given group or to be removed from it according to the state of the given value_to_set.

Parameters:
af_user_id User id to be used to establish the relation.
af_group_id Group id to be used to estable the relation.
value_to_set Relation status to be used