Is it possible in drupal7 to insert a photo in drupal form? I have a start interface that contains two buttons leading to two athors interfaces and I would like to insert a photo above the two buttons. I have tryed the next but it didnt work
function my_module_start_form($form, &$form_state) {
$image_options = array(
'path' => 'path/to/img.jpg',
'alt' => 'Test alt',
'title' => 'Test title',
'width' => '50%',
'height' => '50%',
'attributes' => array('class' => 'some-img', 'id' => 'my-img'),
);
$image = theme('image', $image_options);
$form['start']['image'] = array(
'#markup' => $image,
);
$form['start']['next'] = array(
'#type' => 'submit',
'#value' => t('Create charts')
);
$form['start']['examples'] = array(
'#type' => 'submit',
'#value' => t('See charts examples')
);
return $form;
}