Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291043

file_managed_file_process clobbers #prefix and #suffix

$
0
0

The documentation says that the #prefix and #suffix properties are available for the file_managed FAPI element, but ~ line 470 of file.module these properties are overwritten:

<?php
 
// Prefix and suffix used for Ajax replacement.
 
$element['#prefix'] = '<div id="'. $element['#id'] . '-ajax-wrapper">';
 
$element['#suffix'] = '</div>';
?>

It makes sense, but should this be handled in another way?


Viewing all articles
Browse latest Browse all 291043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>