View source
<?php
function answers_taxonomy_field_default_field_instances() {
$field_instances = array();
$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,
),
);
t('Tags');
return $field_instances;
}