You are here

function answers_taxonomy_field_default_field_instances in Answers 7.4

Implements hook_field_default_field_instances().

File

answers_taxonomy/answers_taxonomy.features.field_instance.inc, line 11
answers_taxonomy.features.field_instance.inc

Code

function answers_taxonomy_field_default_field_instances() {
  $field_instances = array();

  // Exported field_instance:
  // 'node-answers_question-answers_tags'.
  $field_instances['node-answers_question-answers_tags'] = array(
    'bundle' => 'answers_question',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => array(
      'default' => array(
        'label' => 'hidden',
        'module' => 'taxonomy',
        'settings' => array(),
        'type' => 'taxonomy_term_reference_link',
        'weight' => 6,
      ),
      'teaser' => array(
        'label' => 'above',
        'settings' => array(),
        'type' => 'hidden',
        'weight' => 6,
      ),
    ),
    'entity_type' => 'node',
    'field_name' => 'answers_tags',
    'label' => 'Tags',
    'required' => 0,
    'settings' => array(
      'user_register_form' => FALSE,
    ),
    'widget' => array(
      'active' => 0,
      'module' => 'taxonomy',
      'settings' => array(
        'autocomplete_path' => 'taxonomy/autocomplete',
        'size' => 60,
      ),
      'type' => 'taxonomy_autocomplete',
      'weight' => -1,
    ),
  );

  // Translatables
  // Included for use with string extractors like potx.
  t('Tags');
  return $field_instances;
}