'ActivityType' => array($subTypeId),
);
$entities = array(
- array('entity_name' => 'contact_1', 'entity_type' => 'IndividualModel'),
+ array('entity_name' => 'individual_1', 'entity_type' => 'IndividualModel'),
array('entity_name' => 'activity_1', 'entity_type' => 'ActivityModel', 'entity_sub_type' => $subTypeId),
);
$this->addProfileSelector('contact_profile_id', ts('Contact Info'), $allowCoreTypes, $allowSubTypes, $entities);
*/
public function buildQuickForm() {
- // Register 'contact_1'
+ // Register 'individual_1' model
$entities = array();
- $entities[] = array('entity_name' => 'contact_1', 'entity_type' => 'IndividualModel');
+ $entities[] = array('entity_name' => 'individual_1', 'entity_type' => 'IndividualModel');
$allowCoreTypes = array_merge(array('Contact', 'Individual'), CRM_Contact_BAO_ContactType::subTypes('Individual'));
$allowSubTypes = array();
);
$entities = array(
- array('entity_name' => 'contact_1',
+ array('entity_name' => 'individual_1',
'entity_type' => 'IndividualModel'
),
array('entity_name' => 'organization_1',
* ...
* cj('.crm-profile-selector').crmProfileSelector({
* groupTypeFilter: "Contact,Individual,Activity;;ActivityType:7",
- * entities: "contact_1:IndividualModel,activity_1:ActivityModel"
+ * entities: "individual_1:IndividualModel,activity_1:ActivityModel"
* });
*
* Note: The system does not currently support dynamic entities -- it only supports
- * a couple of entities named "contact_1" and "activity_1". See also
+ * a couple of entities named "individual_1" and "activity_1". See also
* CRM.UF.guessEntityName().
*/
$.fn.crmProfileSelector = function(options) {
switch (field_type) {
case 'Contact':
case 'Individual':
- return 'contact_1';
+ return 'individual_1';
case 'Organization':
return 'organization_1';
case 'Household':