
Update commons modules to release 7.12, and move the codebase under modules/commons instead of constant fetching from remote repository. The commons.make file removed so it is not required to rebuild groups distribution. Change-Id: I3be393ba1af34427e2915b18ab1ad718fd4e54db
58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* commons_q_a.features.field_base.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_default_field_bases().
|
|
*/
|
|
function commons_q_a_field_default_field_bases() {
|
|
$field_bases = array();
|
|
|
|
// Exported field_base: 'field_related_question'
|
|
$field_bases['field_related_question'] = array(
|
|
'active' => 1,
|
|
'cardinality' => 1,
|
|
'deleted' => 0,
|
|
'entity_types' => array(),
|
|
'field_name' => 'field_related_question',
|
|
'foreign keys' => array(
|
|
'node' => array(
|
|
'columns' => array(
|
|
'target_id' => 'nid',
|
|
),
|
|
'table' => 'node',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'target_id' => array(
|
|
0 => 'target_id',
|
|
),
|
|
),
|
|
'locked' => 0,
|
|
'module' => 'entityreference',
|
|
'settings' => array(
|
|
'handler' => 'base',
|
|
'handler_settings' => array(
|
|
'behaviors' => array(
|
|
'views-select-list' => array(
|
|
'status' => 0,
|
|
),
|
|
),
|
|
'sort' => array(
|
|
'type' => 'none',
|
|
),
|
|
'target_bundles' => array(
|
|
'question' => 'question',
|
|
),
|
|
),
|
|
'target_type' => 'node',
|
|
),
|
|
'translatable' => 0,
|
|
'type' => 'entityreference',
|
|
);
|
|
|
|
return $field_bases;
|
|
}
|