Function __global->_cns_make_member_cpfs

Definitions

sources/cns_members_action.php

  • Make a member's custom fields row.This function assumes the row does not yet exist.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member to which we are making the CPFs
$custom_fields array No No required parameter N/A N/A A map of custom field values (fieldID=>value)
$all_fields array No No required parameter N/A N/A A map of all member fields

Preview

Code (PHP)

/**
 * Make a member's custom fields row.This function assumes the row does not yet exist.
 *
 * @param  MEMBER $member_id The member to which we are making the CPFs
 * @param  array $custom_fields A map of custom field values (fieldID=>value)
 * @param  array $all_fields A map of all member fields
 */

function _cns_make_member_cpfs(int $member_id, array $custom_fields, array $all_fields)