<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City" /><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place" /><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Bookman Old Style";
        panose-1:2 5 6 4 5 5 5 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="blue">
<div class="Section1">
<p class="MsoNormal"><st1:City w:st="on"><st1:place w:st="on"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;
color:navy">Nancy</span></font></st1:place></st1:City><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;
color:navy">,
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" 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.
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" 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.
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy">Are you using 6 or 7?
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" 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.
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" 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.
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy">Dave<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;
font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> support-bounces@drupal.org [mailto:support-bounces@drupal.org]
<b><span style="font-weight:bold">On Behalf Of </span></b><st1:PersonName w:st="on">Ms. Nancy Wichmann</st1:PersonName><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> <st1:PersonName w:st="on">support@drupal.org</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [support] Form submission problem</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
<div>
<div id="yiv1996150765">
<div>
<div>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_49">
<p class="MsoNormal" style="background:white"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">In hook_node_view(), I have:</span><o:p></o:p></font></p>
</div>
<span id="yiv1996150765yui_3_7_2_20_1359641845930_162"><span id="yiv1996150765yui_3_7_2_20_1359641845930_160"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">
<div id="yiv1996150765yui_3_7_2_20_1359641845930_120">
<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'mymodule') . '/</span><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">mymodule</span>.pages.inc';<br id="yiv1996150765yui_3_7_2_20_1359641845930_154">
$form = drupal_get_form('</span><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">mymodule</span>_tab_form', $node, $</span><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">mymodule</span>->wid,
$states, $current);<br>
$form['#weight'] = 99;<br>
<br>
$node->content['</span><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">mymodule</span>'] = $form;<br>
<br>
</span></font><font color="black" face="Arial"><span style="font-family:Arial;
color:black"></span><o:p></o:p></span></font></p>
</div>
</span></span>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_151">
<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:
12.0pt;font-family:Arial;color:black">I'm guessing that this technically makes the form part of the main module, while the submission handler is still in the .inc file.<o:p></o:p></span></font></p>
</div>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_167">
<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:
12.0pt;font-family:Arial;color:black"><o:p> </o:p></span></font></p>
</div>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_168">
<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:
12.0pt;font-family:Arial;color:black">BTW, I even tried adding the .inc file name to the .info file. No help.<br>
<br>
<o:p></o:p></span></font></p>
</div>
<span id="yiv1996150765yui_3_7_2_20_1359641845930_98"></span><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">
<div id="yiv1996150765yui_3_7_2_20_1359641845930_155">
<p class="MsoNormal"><font size="3" color="black" face="Arial"><span style="font-size:
12.0pt;font-family:Arial;color:black"><br>
<br>
<o:p></o:p></span></font></p>
</div>
</span>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_51">
<p class="MsoNormal" style="background:white"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black"> <o:p></o:p></span></font></p>
</div>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_53">
<p class="MsoNormal" style="background:white"><st1:City w:st="on"><st1:place w:st="on"><b><i><font size="4" color="#ff007f" face="Bookman Old Style"><span style="font-size:13.5pt;font-family:"Bookman Old Style";color:#FF007F;
font-weight:bold;font-style:italic">Nancy</span></font></i></b></st1:place></st1:City><font color="black" face="Arial"><span style="font-family:Arial;color:black">
<o:p></o:p></span></font></p>
</div>
<div id="yiv1996150765yui_3_7_2_20_1359641845930_58">
<p class="MsoNormal" style="background:white"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><font size="3" color="black" face="Arial"><span style="font-size:12.0pt;font-family:Arial;color:black"><br id="yiv1996150765yui_3_7_2_20_1359641845930_60">
<br>
<o:p></o:p></span></font></p>
<div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center;background:white">
<font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;
color:black">
<hr size="1" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="background:white"><b><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black;
font-weight:bold">From:</span></font></b><font size="2" color="black" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:black">
Earnie Boyd <earnie@users.sourceforge.net><br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">support@drupal.org</st1:PersonName>
<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="color:black"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><br>
On Thu, Jan 31, 2013 at 12:27 PM, <st1:PersonName w:st="on">Ms. Nancy Wichmann</st1:PersonName> 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 href="https://sites.google.com/site/earnieboyd" target="_blank">https://sites.google.com/site/earnieboyd</a><br>
-- <br>
[ Drupal support list | http://lists.drupal.org/ ]<br>
<br>
<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>