Forms issue Drupal 7 submit按钮不适用于主题化

Forms issue Drupal 7 submit按钮不适用于主题化,forms,drupal,theming,Forms,Drupal,Theming,您好,我在重新设计Drupal7中的表单显示时遇到了一个问题 提交boutton不仅与主题一起工作,而且如果它只是简单地显示,则不起作用 我试着检查一些有关这方面的信息,但目前没有什么可以帮助我 我希望有足够的信息来帮助我 我的php表格: 我的tpl.php页面: <table> <tr> <td> <?php print drupal_render($form['NA']); ?>

您好,我在重新设计Drupal7中的表单显示时遇到了一个问题

提交boutton不仅与主题一起工作,而且如果它只是简单地显示,则不起作用

我试着检查一些有关这方面的信息,但目前没有什么可以帮助我

我希望有足够的信息来帮助我

我的php表格:

我的tpl.php页面:

<table>
    <tr>
        <td>
            <?php print drupal_render($form['NA']); ?>
        </td>
        <td>
            <?php print drupal_render($form['period']); ?>
        </td>
    </tr>
    <tr>
        <td>
        <?php print drupal_render($form['submit']); ?>
        </td>
    </tr>
</table>
<?php   print drupal_render_children($form);?>

感谢您的帮助

您是否使用表单作为呈现元素声明了自己的YOURTHEME\u主题?是的,我在hook\u主题“mytheme\u表单”=>数组“呈现元素”=>“表单”、“模板”=>“mytheme\u表单”中声明了此主题,
<table>
    <tr>
        <td>
            <?php print drupal_render($form['NA']); ?>
        </td>
        <td>
            <?php print drupal_render($form['period']); ?>
        </td>
    </tr>
    <tr>
        <td>
        <?php print drupal_render($form['submit']); ?>
        </td>
    </tr>
</table>
<?php   print drupal_render_children($form);?>