| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<!-- $Id: forms_api_reference.html,v 1.31.2.15 2008/04/14 04:14:44 darrenoh Exp $ --> |
<!-- $Id: forms_api_reference.html,v 1.31.2.16 2008/04/15 11:58:18 darthsteven Exp $ --> |
| 4 |
<head> |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
| 6 |
<title>Forms API Reference</title> |
<title>Forms API Reference</title> |
| 453 |
<td class="x"><strong>X</strong></td> |
<td class="x"><strong>X</strong></td> |
| 454 |
<td>-</td> |
<td>-</td> |
| 455 |
<td class="x"><strong>X</strong></td> |
<td class="x"><strong>X</strong></td> |
| 456 |
<td class="x"><strong>X</strong></td> |
<td>-</td> |
| 457 |
<td class="x"><strong>X</strong></td> |
<td class="x"><strong>X</strong></td> |
| 458 |
<td>-</td> |
<td>-</td> |
| 459 |
</tr> |
</tr> |
| 846 |
<h3><a name="item" id="item"></a>item</h3> |
<h3><a name="item" id="item"></a>item</h3> |
| 847 |
<p><strong>Description</strong>: Generate a display-only form element allowing for an optional title and description. </p> |
<p><strong>Description</strong>: Generate a display-only form element allowing for an optional title and description. </p> |
| 848 |
<p>Note: since this is a read-only field, setting the <a href="#required">#required</a> property will do nothing except theme the form element to look as if it were actually required (i.e. by placing a red star next to the <a href="#title">#title</a>).</p> |
<p>Note: since this is a read-only field, setting the <a href="#required">#required</a> property will do nothing except theme the form element to look as if it were actually required (i.e. by placing a red star next to the <a href="#title">#title</a>).</p> |
| 849 |
<p><strong>Properties</strong>: <a href="#attributes">#attributes</a>, <a href="#description">#description</a>, <a href="#prefix">#prefix</a> (default: ''), <a href="#required">#required</a>, <a href="#suffix">#suffix</a> (default: ''), <a href="#title"><strong>#title</strong></a>, <a href="#type"><strong>#type</strong></a>, <a href="#value"><strong>#value</strong></a>, <a href="#weightval">#weight</a></p> |
<p><strong>Properties</strong>: <a href="#description">#description</a>, <a href="#prefix">#prefix</a> (default: ''), <a href="#required">#required</a>, <a href="#suffix">#suffix</a> (default: ''), <a href="#title"><strong>#title</strong></a>, <a href="#type"><strong>#type</strong></a>, <a href="#value"><strong>#value</strong></a>, <a href="#weightval">#weight</a></p> |
| 850 |
<p><strong>Usage example</strong> (<a href="http://drupaldocs.org/api/head/file/modules/contact.module">contact.module</a>):</p> |
<p><strong>Usage example</strong> (<a href="http://drupaldocs.org/api/head/file/modules/contact.module">contact.module</a>):</p> |
| 851 |
<div class="codeblock"> |
<div class="codeblock"> |
| 852 |
<p><code><font color="#000000"> <font color="#0000bb"><?php<br /> |
<p><code><font color="#000000"> <font color="#0000bb"><?php<br /> |