Function __global->set_member_group_timeout
Definitions
sources/group_member_timeouts.php
- Put a member into a usergroup temporarily. Note that if people are subsequently removed from the usergroup they won't be put back in; this allows the admin to essentially cancel the subscription - however, if it is then extended, they do keep the time they had before too.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$member_id | MEMBER | required parameter | N/A | N/A | The member going in the usergroup |
$group_id | GROUP | required parameter | N/A | N/A | The usergroup |
$timestamp | TIME | required parameter | N/A | N/A | The expiry timestamp |
$prefer_for_primary_group | boolean | False | N/A | N/A | Whether to put the member into as a primary group if this is a new temporary membership (it is recommended to NOT use this, since we don't track the source group and hence on expiry the member is put back to the first default group - but also generally you probably don't want to box yourself in with moving people's primary group, it ties your future flexibility down a lot) |