function message_example_field_default_field_bases in Message 7
Implements hook_field_default_field_bases().
File
- message_example/
message_example.features.field_base.inc, line 10 - message_example.features.field_base.inc
Code
function message_example_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'field_comment_ref'
$field_bases['field_comment_ref'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_comment_ref',
'foreign keys' => array(
'comment' => array(
'columns' => array(
'target_id' => 'cid',
),
'table' => 'comment',
),
),
'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(
'direction' => 'ASC',
'field' => 'comment_body:value',
'property' => 'nid',
'type' => 'none',
),
'target_bundles' => array(),
),
'handler_submit' => 'Change handler',
'target_type' => 'comment',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'field_node_ref'
$field_bases['field_node_ref'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_node_ref',
'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(
'direction' => 'ASC',
'field' => 'body:value',
'property' => 'nid',
'type' => 'none',
),
'target_bundles' => array(),
),
'handler_submit' => 'Change handler',
'target_bundles' => array(),
'target_type' => 'node',
),
'translatable' => 0,
'type' => 'entityreference',
);
// Exported field_base: 'field_published'
$field_bases['field_published'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_published',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'Unpublished',
1 => 'Published',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_boolean',
);
return $field_bases;
}