How to add HTML in the drupal form If you want to add HTML in Drupal form using form API. you need to use #markup in that form field. See the below example of form field: $form['form_field'] = array( '#markup' => 'HTML code here', // and add HTML in #markup. );
Post a Comment