How to display image inside a form

by perbatek   Last Updated August 23, 2017 17:07 PM

I want to show image insida a form I've try it with tag inside form but it's doesnt render anything heres my code

$form['y']['image_div'] = array(
            '#prefix' => '<div class="image"><img src="" />',
            '#suffix' => '</div>',

How do I render an image inside in drupal ?

Tags : 7 6

Related Questions