You are here

function isCustomGroupFieldset in Webform CiviCRM Integration 7.5

Same name and namespace in other branches
  1. 7.4 includes/wf_crm_admin_component.inc \isCustomGroupFieldset()
1 call to isCustomGroupFieldset()
wf_crm_admin_component::alterForm in includes/wf_crm_admin_component.inc
Alter back-end webform component edit forms. Called by hook_form_alter() whenever editing a webform component.

File

includes/wf_crm_admin_component.inc, line 772

Code

function isCustomGroupFieldset($fid) {
  $pieces = wf_crm_explode_key($fid);
  if ($pieces[0] == 'civicrm' && strpos($pieces[4], 'cg') !== FALSE && $pieces[5] == 'fieldset') {
    return true;
  }
  return false;
}