Robert Kent


Personal blog of Robert Kent

Drupal 7: Inserting text with the Form API

It can be helpful to insert content into form markup such as help text for users. Here’s how you can do this even if you didn’t build the form markup using hook_form_alter. In your template.php add the following: