*
* Generated from xml/schema/CRM/Core/CustomGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e06fe97917806daa0d337c43968ccf2b)
+ * (GenCodeChecksum:27a1b80ba9d2696e97dd1df33468caff)
*/
/**
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'localizable' => 0,
+ 'pseudoconstant' => [
+ 'callback' => 'CRM_Core_SelectValues::customGroupExtends',
+ ],
'add' => '1.1',
],
'extends_entity_column_id' => [
$values = $this->callAPISuccess('custom_field', 'getoptions', ['field' => 'custom_group_id']);
$this->assertTrue($values['count'] == 0);
$this->CustomGroupCreate(['extends' => 'Activity']);
- $groupCount = $this->callAPISuccess('custom_group', 'getcount', ['extends' => 'activity']);
+ $groupCount = $this->callAPISuccess('custom_group', 'getcount', ['extends' => 'Activity']);
$this->assertEquals($groupCount, 1, 'one group should now exist');
$values = $this->callAPISuccess('custom_field', 'getoptions', ['field' => 'custom_group_id']);
$this->assertEquals(1, $values['count'], 'check that cached value is not retained for custom_group_id');
<default>'Contact'</default>
<comment>Type of object this group extends (can add other options later e.g. contact_address, etc.).</comment>
<add>1.1</add>
+ <pseudoconstant>
+ <callback>CRM_Core_SelectValues::customGroupExtends</callback>
+ </pseudoconstant>
</field>
<field>
<name>extends_entity_column_id</name>