diff --git a/application/models/radix_model.php b/application/models/radix_model.php index c96bcfe9f..71dae98fe 100644 --- a/application/models/radix_model.php +++ b/application/models/radix_model.php @@ -335,6 +335,13 @@ function structure($radix = NULL) ) ) ), + 'display_exif' => array( + 'database' => TRUE, + 'boards_preferences' => TRUE, + 'help' => _('Show the EXIF data (EXIF data is saved in the database regardless)'), + 'type' => 'checkbox', + 'disabled' => 'disabled', + ), 'enable_poster_hash' => array( 'database' => TRUE, 'boards_preferences' => TRUE, diff --git a/application/views/admin/form_creator.php b/application/views/admin/form_creator.php index 8b2c1dc1c..606a18cef 100644 --- a/application/views/admin/form_creator.php +++ b/application/views/admin/form_creator.php @@ -272,7 +272,12 @@ $extra = ''; if(isset($helpers['sub'])) { - $extra = 'data-function="hasSubForm"'; + $extra .= 'data-function="hasSubForm"'; + } + + if(isset($item['disabled'])) + { + $extra .= ' disabled="disabled"'; } ?>