Index: forms_api_reference.html
===================================================================
RCS file: /cvs/drupal-contrib/contributions/docs/developer/topics/forms_api_reference.html,v
retrieving revision 1.137
diff -u -r1.137 forms_api_reference.html
--- forms_api_reference.html	22 Jul 2010 23:41:35 -0000	1.137
+++ forms_api_reference.html	13 Oct 2010 20:51:07 -0000
@@ -2584,14 +2584,16 @@
 
 <p><strong>Usage example</strong>: (<a href="http://api.drupal.org/api/file/modules/system/system.module">system.module</a>):</p>
 
-<div class="codeblock"> <code><span class="def-txt"><span class="b-txt">&lt;?php<br />
-$type</span><span class="g-txt">[</span><span class="r-txt">'submit'</span><span class="g-txt">] = array(</span><span class="r-txt"><br />
-&nbsp; '#input'</span> <span class="g-txt">=&gt;</span> <span class="b-txt">TRUE</span><span class="g-txt">,</span> <span class="r-txt"><br />
-&nbsp;&nbsp;'#name'</span> <span class="g-txt">=&gt;</span> <span class="r-txt">'op'</span><span class="g-txt">,</span> <span class="r-txt"><br />
-&nbsp;&nbsp;'#button_type'</span> <span class="g-txt">=&gt;</span> <span class="r-txt">'submit'</span><span class="g-txt">,</span> <span class="r-txt"><br />
-&nbsp;&nbsp;'#submit'</span> <span class="g-txt">=&gt;</span> <span class="b-txt">TRUE,<br />
-</span><span class="g-txt">);<br />
-</span><span class="b-txt">?&gt;</span></span></code> </div>
+<div class="codeblock"> <code>
+$types['submit'] = array(<br />
+&nbsp;&nbsp;'#input' => TRUE,<br />
+&nbsp;&nbsp;'#name' => 'op',<br />
+&nbsp;&nbsp;'#button_type' => 'submit',<br />
+&nbsp;&nbsp;'#executes_submit_callback' => TRUE,<br />
+&nbsp;&nbsp;'#limit_validation_errors' => FALSE,<br />
+&nbsp;&nbsp;'#process' => array('ajax_process_form'),<br />
+&nbsp;&nbsp;'#theme_wrappers' => array('button'),<br />
+);</code> </div>
 
 <h3><a name="collapsed" id="collapsed">#collapsed</a></h3>
 
@@ -3393,6 +3395,27 @@
 &nbsp; );
 </code></div>
 
+<h3><a name="submit_property" id="submit_property">#submit</a></h3>
+
+<p><strong>Used by</strong>: <a href="#button">button</a>, <a href="#image_button">image_button</a>, <a href="#submit">submit</a>, <a href="#form">form</a></p>
+
+<p><strong>Description</strong>:&nbsp; A list of custom submit functions that will be called when the element is submitted. This is usually to add additional submit functions to a form, or to use an alternate function rather than the default form validation function which is the form ID with <em>_submit</em> appended to it.</p>
+<p><strong>Values</strong>: An array of function names. Each such function will take $form and $form_state as parameters.</p>
+
+<p><strong>Usage example</strong> (<a href="http://api.drupal.org/api/function/node_form/6">node_form()</a>):</p>
+
+<div class="codeblock">
+<code>
+  if (!empty($node-&gt;nid) &amp;&amp; node_access(&#x27;delete&#x27;, $node)) {<br />
+  &nbsp;$form[&#x27;actions&#x27;][&#x27;delete&#x27;] = array(<br />
+  &nbsp;&nbsp;&#x27;#type&#x27; =&gt; &#x27;submit&#x27;,<br />
+  &nbsp;&nbsp;&#x27;#value&#x27; =&gt; t(&#x27;Delete&#x27;),<br />
+  &nbsp;&nbsp;&#x27;#weight&#x27; =&gt; 15,<br />
+  &nbsp;&nbsp;&#x27;#submit&#x27; =&gt; array(&#x27;node_form_delete_submit&#x27;),<br />
+  &nbsp;);<br />
+</code>
+</div>
+
 <h3><a name="suffix" id="suffix">#suffix</a></h3>
 
 <p><strong>Used by</strong>: All elements
