Node Form Not submitting on ctool modal I have a custom form, on submission of which I am calling ctools modal with a node form(content type: turn). 

Code for Custom Form.

function _my_module_name_files_listing_form($form, &amp;$form_state) {
  $form = array();
  $form_state['storage']['values'] = $files;
  $form['download_submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Download'),
    '#submit' =&gt; array('_my_module_name_files_download_submit'),
  );
  $form['create_segment'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Create Segment'),
    '#attributes' =&gt; array('class' =&gt; array('ctools-use-modal')),
    '#ajax' =&gt; array(
      'callback' =&gt; '_my_module_name_files_create_segment',
    ),
  );
  $form['upload_content'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Upload Content'),
    '#submit' =&gt; array('_my_module_name_files_upload_content'),
  );
  $form['delete_submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Delete'),
    '#submit' =&gt; array('_my_module_name_files_delete_submit'),
  );
  return $form;
}


Callback code for ajax submission rendering node form.

function _my_module_name_files_create_segment($form, &amp;$form_state) {
  global $user;
  $form_id = 'turn_node_form';
  ctools_include('node.pages', 'node', '');
  ctools_include('ajax');
  ctools_include('modal');
  ctools_modal_add_js();
  ctools_add_js('ajax-responder');
  $destination = 'node/1';
  $form_state = array(
    'ajax' =&gt; TRUE,
    'title' =&gt; t('Form Title'),
  );
  $node = (object) array(
        'uid' =&gt; $user-&gt;uid,
        'name' =&gt; (isset($user-&gt;name) ? $user-&gt;name : ''),
        'type' =&gt; 'turn',
        'language' =&gt; LANGUAGE_NONE,
        'status' =&gt; TRUE,
  );

  $form_state['build_info']['args'] = array($node);
  $output = ctools_modal_form_wrapper($form_id, $form_state);
  if (!empty($form_state['ajax_commands'])) {
    $output = $form_state['ajax_commands'];
  }
  if (!empty($form_state['executed'])) {
    $output = array();
    // Redirect to destination.
    $output[] = ctools_ajax_command_redirect('node/8', 0);
  }
  print ajax_render($output);
  drupal_exit();
}


Problem: 
Node Form is coming fine on modal and hitting save button triggers ajax call but node form does not submit. Am I missing something here?
Try replacing 

ctools_include('node.pages', 'node', '');


with 

ctools_form_include_file($form_state, drupal_get_path('module', 'node') . '/node.pages.inc');


It's possible that the node.pages.inc file isn't loaded if the form is found from cached data.