Skip to content
Snippets Groups Projects
Commit 39195776 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Patch #1552984 by Niklas Fiekas: Added Make 'File displayed by default' depend...

Patch #1552984 by Niklas Fiekas: Added Make 'File displayed by default' depend on 'Enable display field' with #states.
parent 747e01ca
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,11 @@ function file_field_settings_form($field, $instance, $has_data) {
'#title' => t('Files displayed by default'),
'#default_value' => $settings['display_default'],
'#description' => t('This setting only has an effect if the display option is enabled.'),
'#states' => array(
'visible' => array(
':input[name="field[settings][display_field]"]' => array('checked' => TRUE),
),
),
);
$scheme_options = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment