<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044396" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044396</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Yes.
I&#039;ve abandoned this</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/hook-form-alter-doesnt-submit-drupal#comment-1243525</link>
    <description> &lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;I&#039;ve abandoned this approach.&lt;/p&gt;
&lt;p&gt;As you say, it&#039;s clearly not designed to do this.&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Jul 2009 08:12:09 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1243525 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>It&#039;s because you&#039;re using</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/hook-form-alter-doesnt-submit-drupal#comment-1243460</link>
    <description> &lt;p&gt;It&#039;s because you&#039;re using &lt;code&gt;hook_form_alter&lt;/code&gt; for something it&#039;s not designed to do. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The code above is trying to build the whole form array, but it doesn&#039;t work because the hook is only for altering existing forms. Looking at the code it generates there&#039;s no form tag, for example. Changing:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=Array (&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt; to:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$form &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+= Array (&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Stops the form being destroyed, but might also break what you were trying to do. The way to show the user a form is to implement &lt;a href=&quot;http://api.drupal.org/api/function/hook_menu/6&quot;&gt;hook_menu&lt;/a&gt; with &lt;code&gt;&amp;#039;page callback&amp;#039; =&amp;gt; &amp;#039;drupal_get_form&amp;#039;,&lt;/code&gt; and &lt;code&gt;&amp;#039;page arguments&amp;#039; =&amp;gt;&amp;nbsp; array(&amp;#039;sportsa_add&amp;#039;),&lt;/code&gt; where &lt;code&gt;page arguments&lt;/code&gt; is the name of the function that provides the form.&lt;/p&gt;
&lt;p&gt;There&#039;s an &lt;a href=&quot;http://api.drupal.org/api/file/developer/examples/page_example.module/6&quot;&gt;example module&lt;/a&gt; with a couple of page hook examples, almost all modules include a menu example. user.module for example, has &lt;a href=&quot;http://api.drupal.org/api/function/user_menu/6&quot;&gt;user_menu&lt;/a&gt;, one of the things this points to is the &lt;a href=&quot;http://api.drupal.org/api/function/user_register/6&quot;&gt;user_register&lt;/a&gt; form.&lt;/p&gt;
&lt;p&gt;Anyway, not sure that&#039;s what you&#039;re trying to do, hope this helps nevertheless.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Jul 2009 04:52:38 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1243460 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
