Drupal 7 – Add HTML Markup in Form

Add the following form element in hook_form_alter() to add your own HTML markup.

$form['html_markup'] = array('#markup' => t('<a href="http://eureka.ykyuen.info">Eureka!</a>'));

 

For Drupal 6, please refer to the following post instead.
Drupal – Add HTML Markup in Form

Done =)

Reference: Drupal 7 Form API Reference

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s