105 lines
2.4 KiB
PHP
105 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* features_test.features.field.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_default_fields().
|
|
*/
|
|
function features_test_field_default_fields() {
|
|
$fields = array();
|
|
|
|
// Exported field: 'node-features_test-field_features_test'
|
|
$fields['node-features_test-field_features_test'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(),
|
|
'field_name' => 'field_features_test',
|
|
'foreign keys' => array(
|
|
'format' => array(
|
|
'columns' => array(
|
|
'format' => 'format',
|
|
),
|
|
'table' => 'filter_format',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'format' => array(
|
|
0 => 'format',
|
|
),
|
|
),
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'max_length' => '255',
|
|
),
|
|
'translatable' => '1',
|
|
'type' => 'text',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'features_test',
|
|
'default_value' => NULL,
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'text',
|
|
'settings' => array(),
|
|
'type' => 'text_default',
|
|
'weight' => 0,
|
|
),
|
|
'full' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'print' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'rss' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_features_test',
|
|
'label' => 'Test',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'text_processing' => '0',
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'active' => 1,
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'size' => '60',
|
|
),
|
|
'type' => 'text_textfield',
|
|
'weight' => '-4',
|
|
),
|
|
),
|
|
);
|
|
|
|
// Translatables
|
|
// Included for use with string extractors like potx.
|
|
t('Test');
|
|
|
|
return $fields;
|
|
}
|