0
表格內的圖像,我嘗試呈現在表單內的圖像,但仍犯規呈現什麼如何呈現在Drupal
這裏的自定義模塊
$image_options = array(
'path' => 'http://novelplanet.com/Content/images/noImage.jpg',
'alt' => 'Test alt',
'title' => 'Test title',
'width' => '50%',
'height' => '50%',
'attributes' => array('class' => 'image', 'id' => 'my-img'),
);
$image = theme('image', $image_options);
$form['y']['image_div'] = array(
'#prefix' => '<div class="image">',
'#suffix' => '</div>',
'#markup' => $image,
);
在我TPL
<?php print drupal_render($form['y']['image_div']); ?>
如何在form.inc中渲染圖像drupal 6