function wf_crm_explode_multivalue_str in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 includes/utils.inc \wf_crm_explode_multivalue_str()
Parameters
string:
Return value
array
5 calls to wf_crm_explode_multivalue_str()
- wf_crm_admin_form::handleDynamicCustomField in includes/
wf_crm_admin_form.inc - When a custom field is saved/deleted in CiviCRM, sync webforms with dynamic fieldsets.
- wf_crm_get_fields in includes/
utils.inc - Fetches CiviCRM field data.
- wf_crm_webform_ajax::contactAjax in includes/
wf_crm_webform_ajax.inc - Load one or more contacts via ajax
- wf_crm_webform_preprocess::fillForm in includes/
wf_crm_webform_preprocess.inc - Recursively walk through form array and set properties of CiviCRM fields
- wf_crm_webform_preprocess::replaceTokens in includes/
wf_crm_webform_preprocess.inc - Token replacement for form messages
File
- includes/
utils.inc, line 1799 - Webform CiviCRM module's common utility functions.
Code
function wf_crm_explode_multivalue_str($str) {
$sp = CRM_Core_DAO::VALUE_SEPARATOR;
if (is_array($str)) {
return $str;
}
return explode($sp, trim((string) $str, $sp));
}