You are here

features_test.features.field_instance.inc in Features 7.2

File

tests/features_test/features_test.features.field_instance.inc
View source
<?php

/**
 * @file
 * features_test.features.field_instance.inc
 */

/**
 * Implements hook_field_default_field_instances().
 */
function features_test_field_default_field_instances() {
  $field_instances = array();

  // Exported field_instance: 'node-features_test-field_features_test'.
  $field_instances['node-features_test-field_features_test'] = 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 $field_instances;
}

Functions

Namesort descending Description
features_test_field_default_field_instances Implements hook_field_default_field_instances().