Error in Submit handler for custom node add form Trying to theme my own node add form with hook_theme() in my own module. In the *.tpl.php page for the node add form, submit button is not actually adding the content to database.

Issue: Why is "php print render($buttons);" not adding the right submit handler that actually adds a node (Content) entry.

In my stories.module file:

 /* Implements hook_theme().
 */
/*
function stories_theme($existing, $type, $theme, $path){
  return array(
    'stories_node_form' =&gt; array(
      'render element' =&gt; 'form',
      'template' =&gt; 'stories-node-form',
      'path' =&gt; drupal_get_path('module', 'stories'),
    ),
  );
}
*/

function template_preprocess_stories_node_form(&amp;$variables){

    $variables['sidebar'] = array();   // Put taxonomy fields in sidebar.

    $variables['sidebar'][] = $variables['form']['field_tags'];
    hide($variables['form']['field_tags']);

    // Extract the form buttons, and put them in independent variable.
    $variables['buttons'] = $variables['form']['actions'];
    //hide($variables['form']['actions']);
 }


In stories-node-form.tpl.php:

    &lt;div id="stories-add-wrapper"&gt;
&lt;div class="nicname_and_category"&gt;
    &lt;?php //print drupal_render_children($form); ?&gt;
    &lt;div class="input_auteur"&gt;
        &lt;?php print render($form['field_nicname']); ?&gt;
    &lt;/div&gt;  

    &lt;div class="input_cat"&gt;
        &lt;?php print render($form['field_email']); ?&gt;
    &lt;/div&gt;  
&lt;/div&gt;

&lt;div class="title_and_category"&gt;
    &lt;div class="title"&gt;
        &lt;?php print render($form['title']); ?&gt;
    &lt;/div&gt;

    &lt;div class="category"&gt;
        &lt;?php print render($form['field_category']);  ?&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;?php print render($form['field_share_your_story']);        ?&gt;

&lt;?php print render($buttons); ?&gt;
    &lt;/div&gt;
Found the solution. Needed to add print drupal_render_children($form); to the end of stories-node-form.tpl.php