Function __global->cns_get_member_fields_settings
Definitions
sources/cns_members_action2.php
- Get form fields for adding/editing/finishing a member account: settings only.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $pt_allow | SHORT_TEXT | No | No | * | N/A | N/A | Usergroups that may PT the member |
| $pt_rules_text | LONG_TEXT | No | No | Blank (empty string) | N/A | N/A | Rules that other members must agree to before they may start a PT with the member |
| $validated | BINARY | No | No | 1 | N/A | N/A | Whether the account has been validated |
| $probation_expiration_time | ?TIME | No | No | Null | N/A | N/A | When the member is on probation until (null: just finished probation / or effectively was never on it) |
| $is_perm_banned | ID_TEXT | No | No | 0 | N/A | N/A | Whether the member is permanently banned |
| $parental_consent | integer | No | No | 0 | 0 1 2 | N/A | The parental consent status of the member |
| $adjusted_config_options | array | No | No | [] | N/A | N/A | A map of adjusted config options |
Returns
- A pair: The form fields, Hidden fields (both Tempcode), Whether separate sections were used
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get form fields for adding/editing/finishing a member account: settings only.
*
* @param SHORT_TEXT $pt_allow Usergroups that may PT the member
* @param LONG_TEXT $pt_rules_text Rules that other members must agree to before they may start a PT with the member
* @param BINARY $validated Whether the account has been validated
* @param ?TIME $probation_expiration_time When the member is on probation until (null: just finished probation / or effectively was never on it)
* @param ID_TEXT $is_perm_banned Whether the member is permanently banned
* @param integer $parental_consent The parental consent status of the member
* @set 0 1 2
* @param array $adjusted_config_options A map of adjusted config options
* @return array A pair: The form fields, Hidden fields (both Tempcode), Whether separate sections were used
*/
function cns_get_member_fields_settings(string $pt_allow = '*', string $pt_rules_text = '', int $validated = 1, ?int $probation_expiration_time = null, string $is_perm_banned = '0', int $parental_consent = 0, array $adjusted_config_options = []) : array
* Get form fields for adding/editing/finishing a member account: settings only.
*
* @param SHORT_TEXT $pt_allow Usergroups that may PT the member
* @param LONG_TEXT $pt_rules_text Rules that other members must agree to before they may start a PT with the member
* @param BINARY $validated Whether the account has been validated
* @param ?TIME $probation_expiration_time When the member is on probation until (null: just finished probation / or effectively was never on it)
* @param ID_TEXT $is_perm_banned Whether the member is permanently banned
* @param integer $parental_consent The parental consent status of the member
* @set 0 1 2
* @param array $adjusted_config_options A map of adjusted config options
* @return array A pair: The form fields, Hidden fields (both Tempcode), Whether separate sections were used
*/
function cns_get_member_fields_settings(string $pt_allow = '*', string $pt_rules_text = '', int $validated = 1, ?int $probation_expiration_time = null, string $is_perm_banned = '0', int $parental_consent = 0, array $adjusted_config_options = []) : array

