function wf_crm_get_privacy_options in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 includes/utils.inc \wf_crm_get_privacy_options()
In reality there is no contact field 'privacy' so this is not a real option list. These are actually 5 separate contact fields that this module munges into 1 for better usability.
Return value
array
2 calls to wf_crm_get_privacy_options()
- wf_crm_field_options in includes/
utils.inc - Get options for a specific field
- wf_crm_webform_base::loadContact in includes/
wf_crm_webform_base.inc - Fetch all relevant data for a given contact Used to load contacts for pre-filling a webform, and also to fill in a contact via ajax
File
- includes/
utils.inc, line 380 - Webform CiviCRM module's common utility functions.
Code
function wf_crm_get_privacy_options() {
return [
'do_not_email' => ts('Do not email'),
'do_not_phone' => ts('Do not phone'),
'do_not_mail' => ts('Do not mail'),
'do_not_sms' => ts('Do not sms'),
'do_not_trade' => ts('Do not trade'),
'is_opt_out' => ts('NO BULK EMAILS (User Opt Out)'),
];
}