<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Thanks, Hans. That was a new one to me, as a lot of D7 stuff is. But it didn't solve the problem. Oh well.<br><div><span> <br></span></div><div> </div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font><br></div><div style="color: rgb(255, 0, 127); font-size: 18px; font-family: bookman old style,new york,times,serif; background-color: transparent; font-style: italic;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Hans
Langouche</font><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> <br></span></font></div><div id="yiv1081541570"><div class="yiv1081541570gmail_quote"><blockquote class="yiv1081541570gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US"><div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">I’m starting to believe that the problem is that the #submit handler is not wired correctly to this form. If require_once failed it
would throw a hard error and no form would render. This means that the function that the form handler thinks is the submit handler is not the same as the one you think it is. I think the include is not the problem or the form wouldn’t render.
<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"><u></u> <u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Is it possible that something is overriding the submit handler. #submit attributes on the form in drupal 7 might do that.
<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"><u></u> <u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Are you using 6 or 7?
<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"><u></u> <u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">$form_state[‘rebuild’] sets in the validation handler might cause this.
<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">$form_state[‘storage’] sets in the validation handler in D6 might also cause this.
<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"><u></u> <u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Dave<u></u><u></u></span></font></div>
<div class="yiv1081541570MsoNormal"><font color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"><u></u> <u></u></span></font></div>
<div>
<div class="yiv1081541570MsoNormal" style="text-align:center;" align="center"><font face="Times New Roman" size="3"><span style="font-size:12.0pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<div class="yiv1081541570MsoNormal"><b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold;">From:</span></font></b><font face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;"> <a rel="nofollow" ymailto="mailto:support-bounces@drupal.org" target="_blank" href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a rel="nofollow" ymailto="mailto:support-bounces@drupal.org" target="_blank" href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>]
<b><span style="font-weight:bold;">On Behalf Of </span></b><u></u>Ms. Nancy Wichmann<u></u><br>
<b><span style="font-weight:bold;">Sent:</span></b> Thursday, January 31, 2013 4:49 PM<br>
<b><span style="font-weight:bold;">To:</span></b> <u></u><a rel="nofollow" ymailto="mailto:support@drupal.org" target="_blank" href="mailto:support@drupal.org">support@drupal.org</a><u></u><br>
<b><span style="font-weight:bold;">Subject:</span></b> Re: [support] Form submission problem</span></font><u></u><u></u></div>
</div>
<div class="yiv1081541570MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt;"><u></u> <u></u></span></font></div>
<div>
<div>
<div>
<div>
<div>
<div class="yiv1081541570MsoNormal" style="background:white;"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;">In hook_node_view(), I have:</span><u></u><u></u></font></div>
</div>
<span><span><span>
<div>
<div class="yiv1081541570MsoNormal"><font color="black" face="Courier New"><span style="font-size:10.0pt;"> require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'mymodule') . '/</span><span><span>mymodule</span>.pages.inc';<br>
$form = drupal_get_form('</span><span><span>mymodule</span>_tab_form', $node, $</span><span><span>mymodule</span>->wid,
$states, $current);<br>
$form['#weight'] = 99;<br>
<br>
$node->content['</span><span><span>mymodule</span>'] = $form;<br>
<br>
</span></font><font color="black" face="Arial"><span style="font-family:Arial;"></span><u></u><u></u></font></div></div></span>
</span></span></div>
<div>
<div class="yiv1081541570MsoNormal"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;">I'm guessing that this technically makes the form part of the main module, while the submission handler is still in the .inc file.<u></u><u></u></span></font></div>
</div>
<div>
<div class="yiv1081541570MsoNormal"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;"><u></u> <u></u></span></font></div>
</div>
<div>
<div class="yiv1081541570MsoNormal"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;">BTW, I even tried adding the .inc file name to the .info file. No help.<br>
<br>
<u></u><u></u></span></font></div>
</div>
<span></span><span>
<div>
<div class="yiv1081541570MsoNormal"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;"><br>
<br>
<u></u><u></u></span></font></div>
</div>
</span>
<div>
<div class="yiv1081541570MsoNormal" style="background:white;"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;"> <u></u><u></u></span></font></div>
</div>
<div>
<div class="yiv1081541570MsoNormal" style="background:white;"><u></u><u></u><b><i><font color="#ff007f" face="Bookman Old Style" size="4"><span style="font-size:13.5pt;color:#ff007f;font-weight:bold;font-style:italic;">Nancy</span></font></i></b><u></u><u></u><font color="black" face="Arial"><span style="font-family:Arial;">
<u></u><u></u></span></font></div>
</div>
<div>
<div class="yiv1081541570MsoNormal" style="background:white;"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.<u></u><u></u></span></font></div>
</div>
<div>
<div class="yiv1081541570MsoNormal" style="background:white;"><font color="black" face="Arial" size="3"><span style="font-size:12.0pt;font-family:Arial;"><br>
<br>
<u></u><u></u></span></font></div>
<div>
<div>
<div>
<div class="yiv1081541570MsoNormal" style="text-align:center;background:white;" align="center">
<font color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">
<hr align="center" size="1" width="100%">
</span></font></div>
<div class="yiv1081541570MsoNormal" style="background:white;"><b><font color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;font-weight:bold;">From:</span></font></b><font color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">
Earnie Boyd <<a rel="nofollow" ymailto="mailto:earnie@users.sourceforge.net" target="_blank" href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>><br>
<b><span style="font-weight:bold;">To:</span></b> <u></u><a rel="nofollow" ymailto="mailto:support@drupal.org" target="_blank" href="mailto:support@drupal.org">support@drupal.org</a><u></u>
<br>
<b><span style="font-weight:bold;">Sent:</span></b> Thursday, January 31, 2013 1:35 PM<br>
<b><span style="font-weight:bold;">Subject:</span></b> Re: [support] Form submission problem</span></font><font color="black"><span style=""><u></u><u></u></span></font></div>
</div>
<div class="yiv1081541570MsoNormal" style="margin-bottom:12.0pt;background:white;"><font color="black" face="Times New Roman" size="3"><span style="font-size:12.0pt;"><br>
On Thu, Jan 31, 2013 at 12:27 PM, <u></u>Ms. Nancy Wichmann<u></u> wrote:<br>
> In a module, I am using drupal_get_form() to load a form from a .inc file.<br>
> That works fine. But when it is submitted, the submission handler can't be<br>
> found; it's also in the .inc file. How do I get around this?<br>
<br>
Uh, I thought that was how it should be done. Can you give us a mock<br>
up of your form and menu item?<br>
<br>
-- <br>
Earnie<br>
-- <a rel="nofollow" target="_blank" href="https://sites.google.com/site/earnieboyd">https://sites.google.com/site/earnieboyd</a><br>
-- <br>
[ Drupal support list | http://lists.drupal.org/ ]<br>
<br>
<u></u><u></u></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>--<br>
[ Drupal support list | <a rel="nofollow" target="_blank" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]<br></blockquote></div>
</div><br>-- <br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br><br> </div> </div> </blockquote></div> </div></body></html>