There is a proper form elemente for adding markup, which is '#type' => 'markup' . You place HTML inside the '#value'. Nothing wrong with this approach. #prefix and #suffix should be used to wrap elements with additional markup or add HTML that is related to an existing element.<br>
<br>But that's not even the issue here, right?<br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 12:56 PM, James Wilson <span dir="ltr"><<a href="mailto:jrguitar21@gmail.com">jrguitar21@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">additional HTML (that are not form elements) are typically added to the $form array using using #prefix and/or #suffix instead of #value.<div>
<br></div><div>$form['#prefix'] = 'some string to appear above the form';</div>
<div><br></div><div>$form['existing-element']['#prefix'] = 'this string will appear before the form element called existing-element';</div><div><br></div><div><div>$form['existing-element']['#suffix'] = 'this string will appear after the form element called existing-element';</div>
</div><div><br></div><font color="#888888"><div>James Wilson</div><div><a href="http://www.bluesparklabs.com" target="_blank">http://www.bluesparklabs.com</a></div></font><div><div></div><div class="h5"><div><br><div class="gmail_quote">
On Tue, Apr 26, 2011 at 4:31 PM, Carl Jester <span dir="ltr"><<a href="mailto:cjester@peladon.com" target="_blank">cjester@peladon.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
After I posted I realized I can to a _theme function to go with the _form function to help lay things out nicely without having to add .tpl files or other theme overhead to the project. I think it's time to go make friends with drupal_render().<br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Franz <br><br><a href="http://ciudaddelpico.com" target="_blank">http://ciudaddelpico.com</a><br><br>Sent from my laptop<br>