refactor code
This commit is contained in:
parent
9d0e5f2cc3
commit
79933f23be
2 changed files with 1 additions and 5 deletions
|
@ -34,10 +34,6 @@ class TwingleEvent extends Campaign {
|
||||||
$this->className = (new \ReflectionClass($this))->getShortName();
|
$this->className = (new \ReflectionClass($this))->getShortName();
|
||||||
$this->prefix = 'twingle_event_';
|
$this->prefix = 'twingle_event_';
|
||||||
$this->values['campaign_type_id'] = 'twingle_event';
|
$this->values['campaign_type_id'] = 'twingle_event';
|
||||||
// Add value for campaign type
|
|
||||||
$event['campaign_type_id'] = 'twingle_event';
|
|
||||||
|
|
||||||
// Get custom field name for event_id
|
|
||||||
$this->id_custom_field = Cache::getInstance()
|
$this->id_custom_field = Cache::getInstance()
|
||||||
->getCustomFieldMapping()['twingle_event_id'];
|
->getCustomFieldMapping()['twingle_event_id'];
|
||||||
$this->values['parent_id'] = $this->getParentCampaignId();
|
$this->values['parent_id'] = $this->getParentCampaignId();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use CRM_Twingle_ExtensionUtil as E;
|
use CRM_TwingleCampaign_ExtensionUtil as E;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Form controller class
|
* Form controller class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue