You are here

protected function wf_crm_webform_base::getMembershipTypeField in Webform CiviCRM Integration 7.4

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

Parameters

$type:

$field:

Return value

array|null

3 calls to wf_crm_webform_base::getMembershipTypeField()
wf_crm_webform_postprocess::processMemberships in includes/wf_crm_webform_postprocess.inc
Process memberships for a contact Called during webform submission
wf_crm_webform_postprocess::tallyLineItems in includes/wf_crm_webform_postprocess.inc
Calculate line-items for this webform submission
wf_crm_webform_preprocess::loadMemberships in includes/wf_crm_webform_preprocess.inc
Load existing membership information and display a message to members.

File

includes/wf_crm_webform_base.inc, line 878

Class

wf_crm_webform_base
Class wf_crm_webform_base

Code

protected function getMembershipTypeField($type, $field) {
  if (!$this->membership_types) {
    $this->membership_types = wf_crm_apivalues('membership_type', 'get');
  }
  return wf_crm_aval($this->membership_types, $type . ':' . $field);
}