I’m using a “managed file” to upload an image, which works fine, but if you want to remove the image by clicking on the “Remove” button, nothing happens.
$form['logo'] = array( '#type' => 'managed_file', '#title' => 'Logo', '#default_value' => variable_get('logo', ''), '#theme' => 'mymodule_thumb_upload', '#upload_location' => 'public://my-files/', '#upload_validators' => array( 'file_validate_extensions' => array('gif png jpg jpeg'), 'file_validate_size' => array(0.3*1024*1024), 'file_validate_image_resolution'=>array('100x100'), ), );
I’m using a custom theme, and I just realized when I switch back to ‘Seven’ the button works. But what could be the problem?