Hello all
Hello all

I can have a form like this

function my_edit_form($object){
  
  $form = array();
  $form[] = array(
                   '#type' => 'select',
                   '#name' => 'parent_id',
            ..
                 );
  
  $form[] = array(
                   '#type' => 'textfield',
                  '#name' => 'id' 
                   ...
                 );
     return $form
}

Now I want to add an image between two these fields. Is it possible ??

How I can do this
Many thanks
johnheleh

Comments

dman’s picture

$form[] = array( '#value' => '<img src="your.gif" />' );

The implied form element type here is '#type' => 'markup' - which is the default, and handy for inserting arbitrary text.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

johnhelen’s picture

Thanks alot