Commit 8d0eb8be authored by yched's avatar yched

#59451 (followup) - make 'default value' settings work with upload widgets

parent 74e79514
......@@ -1039,7 +1039,7 @@ function content_simpletest() {
*/
function content_handle_default_values($field) {
$exclude = array('computed_field', 'imagefield', 'filefield');
$exclude = array('computed_field');
$db_info = _content_widget_types();
$module = $db_info[$field['widget']['type']]['module'];
......
......@@ -913,6 +913,7 @@ function _content_admin_field($type_name, $field_name) {
// Add handling for default value if not provided by field.
if (content_handle_default_values($field) == 'handle') {
$form['#attributes'] = array("enctype" => "multipart/form-data");
$form['widget']['default_value_fieldset'] = array(
'#type' => 'fieldset',
'#title' => t('Default value'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment