$result = array();
if( $entityId && $linkedEntityTable ){
switch ($linkedEntityTable) {
- case 'civicrm_tell_friend':
- $dao = 'CRM_Friend_DAO_Friend';
- $entityTable = 'civicrm_tell_friend';
- break;
+ case 'civicrm_tell_friend':
+ $dao = 'CRM_Friend_DAO_Friend';
+ $entityTable = 'civicrm_tell_friend';
+ break;
- case 'civicrm_pcp_block':
- $dao = 'CRM_PCP_DAO_PCPBlock';
- $entityTable = 'civicrm_pcp_block';
- break;
-
- case 'civicrm_price_set_entity':
- $dao = 'CRM_Price_DAO_PriceSetEntity';
- $entityTable = 'civicrm_price_set_entity';
- break;
-
- case 'civicrm_uf_join':
- $dao = 'CRM_Core_DAO_UFJoin';
- $entityTable = 'civicrm_uf_join';
- break;
-
+ case 'civicrm_pcp_block':
+ $dao = 'CRM_PCP_DAO_PCPBlock';
+ $entityTable = 'civicrm_pcp_block';
+ break;
+
+ case 'civicrm_price_set_entity':
+ $dao = 'CRM_Price_DAO_PriceSetEntity';
+ $entityTable = 'civicrm_price_set_entity';
+ break;
+
+ case 'civicrm_uf_join':
+ $dao = 'CRM_Core_DAO_UFJoin';
+ $entityTable = 'civicrm_uf_join';
+ break;
}
$params = array(
'entity_id' => $entityId,
//Tab and table mapper
var mapper = {'CRM_Event_Form_ManageEvent_EventInfo': '',
'CRM_Event_Form_ManageEvent_Location': '',
- 'CRM_Event_Form_ManageEvent_Fee': 'civicrm_price_set_entity',
- 'CRM_Event_Form_ManageEvent_Registration': 'civicrm_uf_join',
+ 'CRM_Event_Form_ManageEvent_Fee': '',
+ 'CRM_Event_Form_ManageEvent_Registration': '',
'CRM_Friend_Form_Event': 'civicrm_tell_friend',
'CRM_PCP_Form_Event': 'civicrm_pcp_block'
};