function wf_crm_get_list in Webform CiviCRM Integration 7.3
Get id of the option list for a field
Parameters
$table: CiviCRM table this field belongs to
$name: Field name
Return value
string
3 calls to wf_crm_get_list()
- wf_crm_component_insert in ./
webform_civicrm_admin.inc - Add a CiviCRM field to a webform
- wf_crm_field_options in ./
webform_civicrm_utils.inc - Get options for a specific field
- _wf_crm_component_form_alter in ./
webform_civicrm_admin.inc - Alter back-end webform component edit forms. Called by hook_form_alter() whenever editing a webform component.
File
- ./
webform_civicrm_utils.inc, line 260 - Webform CiviCRM module's common utility functions.
Code
function wf_crm_get_list($table, $name) {
$lists = wf_crm_get_fields('lists');
if (isset($lists[$table . '_' . $name])) {
return $lists[$table . '_' . $name];
}
return wf_crm_aval($lists, "*_{$name}");
}