<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div id="yiv1996150765"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt;"><div id="yiv1996150765yui_3_7_2_20_1359641845930_49"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98">In hook_node_view(), I have:</span></div><div style="color:rgb(0, 0, 0);background-color:transparent;font-style:normal;" id="yiv1996150765yui_3_7_2_20_1359641845930_120"><span id="yiv1996150765yui_3_7_2_20_1359641845930_162" style="font-size:13px;"><span id="yiv1996150765yui_3_7_2_20_1359641845930_160" style="font-family:Courier New, courier, monaco, monospace, sans-serif;"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"> 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></span></span></span></div><div id="yiv1996150765yui_3_7_2_20_1359641845930_151" style="color:rgb(0, 0, 0);font-size:16px;font-family:arial, helvetica, sans-serif;background-color:transparent;font-style:normal;">I'm guessing that this technically makes the form part of the main module, while the submission handler is still in the .inc file.</div><div id="yiv1996150765yui_3_7_2_20_1359641845930_167" style="color:rgb(0, 0, 0);font-size:16px;font-family:arial, helvetica, sans-serif;background-color:transparent;font-style:normal;"><br
id="yiv1996150765yui_3_7_2_20_1359641845930_171"></div><div id="yiv1996150765yui_3_7_2_20_1359641845930_168" style="color:rgb(0, 0, 0);font-size:16px;font-family:arial, helvetica, sans-serif;background-color:transparent;font-style:normal;">BTW, I even tried adding the .inc file name to the .info file. No help.<br><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"></span></div><div id="yiv1996150765yui_3_7_2_20_1359641845930_155" style="color:rgb(0, 0, 0);font-size:16px;font-family:arial, helvetica, sans-serif;background-color:transparent;font-style:normal;"><span id="yiv1996150765yui_3_7_2_20_1359641845930_98"><br></span></div><div id="yiv1996150765yui_3_7_2_20_1359641845930_51"> </div><div id="yiv1996150765yui_3_7_2_20_1359641845930_53"><font id="yiv1996150765yui_3_7_2_20_1359641845930_92" color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i id="yiv1996150765yui_3_7_2_20_1359641845930_91"><b
id="yiv1996150765yui_3_7_2_20_1359641845930_90">Nancy</b></i></font> <br></div><div id="yiv1996150765yui_3_7_2_20_1359641845930_58"><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,
Jr.</font></div><div><br id="yiv1996150765yui_3_7_2_20_1359641845930_60"><blockquote id="yiv1996150765yui_3_7_2_20_1359641845930_63" style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;margin-top:5px;padding-left:5px;"> <div class="yiv1996150765yui_3_7_2_20_1359641845930_71" style="font-family:arial, helvetica, sans-serif;font-size:12pt;"> <div class="yiv1996150765yui_3_7_2_20_1359641845930_72" 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> Earnie Boyd <earnie@users.sourceforge.net><br> <b><span style="font-weight:bold;">To:</span></b> support@drupal.org <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<br> </font> </div> <br>
On Thu, Jan 31, 2013 at 12:27 PM, Ms. Nancy Wichmann 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><br> </div> </div> </blockquote></div> </div></div></div></div></body></html>