function webform_civicrm_civicrm_postSave_civicrm_custom_field in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 8.5 webform_civicrm.module \webform_civicrm_civicrm_postSave_civicrm_custom_field()
- 7.5 webform_civicrm.module \webform_civicrm_civicrm_postSave_civicrm_custom_field()
Implements hook_civicrm_postSave_tableName().
Handles adding/editing a custom field.
Parameters
CRM_Core_DAO_CustomField $dao:
File
- ./
webform_civicrm.module, line 379 - Webform CiviCRM Integration Module: Links webform submissions to contacts in a CiviCRM database. @author Coleman Watts
Code
function webform_civicrm_civicrm_postSave_civicrm_custom_field($dao) {
module_load_include('inc', 'webform_civicrm', 'includes/wf_crm_admin_form');
if (empty($dao->custom_group_id)) {
$dao
->find(TRUE);
}
if ($dao->is_active) {
wf_crm_admin_form::handleDynamicCustomField('create', $dao->id, $dao->custom_group_id);
}
}