How I can insert the img src in contact module.

  if (count($categories) > 0) {
    $form['#token'] = $user->uid ? $user->name . $user->mail : '';

    $form['contact_information'] = 
echo "<img src=\'http://www.optionsplusacademy.com/images/map.png\' alt=\'opis\' />"; 

    $form['name'] = array('#type' => 'textfield',
      '#title' => t('Your name'),
      '#maxlength' => 255,
      '#default_value' => $user->uid ? $user->name : '',
      '#required' => TRUE,

I tried everything and it isn't works.

Comments

Anonymous’s picture

This'll do it:

$form['contact_information'] = array(
  '#value' => "<img src=\'http://www.optionsplusacademy.com/images/map.png\' alt=\'opis\' />"
);
vokalek’s picture

Thank's for reply.
I changed 'http://www.optionsplusacademy.com/images/map.png\' to "http://www.optionsplusacademy.com/images/map.png\" and everything is ok :)
Thanks,