function _crm_core_relationship_field_default_fields in CRM Core 8.2
Same name and namespace in other branches
- 8.3 modules/crm_core_relationship/crm_core_relationship.fields.inc \_crm_core_relationship_field_default_fields()
- 8 modules/crm_core_relationship/crm_core_relationship.fields.inc \_crm_core_relationship_field_default_fields()
- 7 modules/crm_core_relationship/crm_core_relationship.fields.inc \_crm_core_relationship_field_default_fields()
Return value
Return default fields definition that have to be attached to newly created relation type.
See also
field_create_field()
1 call to _crm_core_relationship_field_default_fields()
- crm_core_relationship_field_attach_create_bundle in modules/
crm_core_relationship/ crm_core_relationship.module - Implements hook_field_attach_create_bundle.
File
- modules/
crm_core_relationship/ crm_core_relationship.fields.inc, line 8
Code
function _crm_core_relationship_field_default_fields() {
$fields = array();
$fields[] = array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'crm_core_relationship_status',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => '1',
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => t('Inactive'),
1 => t('Active'),
),
'allowed_values_function' => '',
),
'translatable' => '0',
'type' => 'list_boolean',
);
return $fields;
}