You are here

function wf_crm_admin_component::__construct in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 includes/wf_crm_admin_component.inc \wf_crm_admin_component::__construct()

File

includes/wf_crm_admin_component.inc, line 21

Class

wf_crm_admin_component

Code

function __construct(&$form, &$form_state) {
  civicrm_initialize();
  $this->form =& $form;
  $this->form_state =& $form_state;
  $this->node = node_load($form['nid']['#value']);
  $this->data = wf_crm_aval($this->node, 'webform_civicrm:data');
  $this->component = wf_crm_aval($this->node, 'webform:components:' . $this->form['cid']['#value']);
}