You are here

function _wf_crm_child_components in Webform CiviCRM Integration 7.3

Same name and namespace in other branches
  1. 7.5 includes/utils.inc \_wf_crm_child_components()
  2. 7.4 includes/utils.inc \_wf_crm_child_components()

Returns the children of a webform component

1 call to _wf_crm_child_components()
wf_crm_configure_form_submit in ./webform_civicrm_admin.inc
Submission handler, saves CiviCRM options for a Webform node

File

./webform_civicrm_utils.inc, line 1533
Webform CiviCRM module's common utility functions.

Code

function _wf_crm_child_components($nid, $id) {
  return db_select('webform_component', 'c')
    ->fields('c')
    ->condition('nid', $nid)
    ->condition('pid', $id)
    ->countQuery()
    ->execute()
    ->fetchField();
}