1.20.x taxonomy.module | taxonomy_field_widget_settings_form($field, $instance) |
Implements hook_field_widget_settings_form().
File
- modules/
taxonomy/ taxonomy.module, line 1990 - Enables the organization of content into categories.
Code
function taxonomy_field_widget_settings_form($field, $instance) {
$element = array(
'follow_content_language' => array(
'#type' => 'checkbox',
'#title' => t('Follow content language'),
'#default_value' => isset($instance['widget']['settings']['follow_content_language']) ? $instance['widget']['settings']['follow_content_language'] : TRUE,
'#description' => t('If enabled, and if the selected vocabulary has multilingual support enabled, terms will be added in the language of the content.'),
'#access' => (module_exists('language') && $instance['widget']['type'] == 'taxonomy_autocomplete'),
),
);
return $element;
}