function wf_crm_get_empty_sets in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 includes/utils.inc \wf_crm_get_empty_sets()
Returns empty custom civicrm field sets
Return value
array $sets
1 call to wf_crm_get_empty_sets()
- wf_crm_admin_form::postProcess in includes/
wf_crm_admin_form.inc - Submission handler, saves CiviCRM options for a Webform node
File
- includes/
utils.inc, line 1821 - Webform CiviCRM module's common utility functions.
Code
function wf_crm_get_empty_sets() {
$sets = wf_crm_get_fields('sets');
foreach (array_keys(wf_crm_get_fields()) as $key) {
list($set) = explode('_', $key);
unset($sets[$set]);
}
return $sets;
}