Function __global->cns_read_in_custom_fields
Definitions
sources/cns_members_action2.php
- Read in the Custom Profile Field POST data.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $custom_fields | array | No | No | required parameter | N/A | N/A | The CPF field rows that we'll be reading in the member's values for |
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member involved (null: new member) |
Returns
- The CPF data
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Read in the Custom Profile Field POST data.
*
* @param array $custom_fields The CPF field rows that we'll be reading in the member's values for
* @param ?MEMBER $member_id Member involved (null: new member)
* @return array The CPF data
*/
function cns_read_in_custom_fields(array $custom_fields, ?int $member_id = null) : array
* Read in the Custom Profile Field POST data.
*
* @param array $custom_fields The CPF field rows that we'll be reading in the member's values for
* @param ?MEMBER $member_id Member involved (null: new member)
* @return array The CPF data
*/
function cns_read_in_custom_fields(array $custom_fields, ?int $member_id = null) : array
