How to display eck edit form in ctools modal or in other page? I need to display my custom eck edit form in ctools modal. How can I load the form I need in ctools modal or other page?

function edit_education_form_callback($ajax){
  if ($ajax) {
    ctools_include('ajax');
    ctools_include('modal');

    $form_state = array(
      'ajax' =&gt; TRUE,
      'title' =&gt; t('Education'),
    );

    $output = ctools_modal_form_wrapper('resume_education_edit_form', $form_state);

    if (!empty($form_state['executed'])) {
      // We'll just overwrite the form output if it was successful.
      $output = array();
      ctools_add_js('ajax-responder');
      if (isset($_GET['destination'])) {
        $output[] = ctools_modal_command_dismiss();
      }
      else {
        $output[] = ctools_ajax_command_redirect('my-account');
        drupal_set_message(t('successfully added.'));
        $output[] = ajax_command_after('.modal-title',theme('status_messages'));
      }
    }

    print ajax_render($output);
    drupal_exit();
  }
  else {
    return drupal_get_form('resume_education_edit_form');
  }
}

function resume_education_edit_form($form, &amp;$form_state){
  // How can I call the eck edit form I created?
  // $output = ctools_modal_form_wrapper('eck_edit_form', $form_state)
  // Should I use drupal_get_form('eck__entity__edit')?
}
The right way to load the edit form of a custom entity bundle created with ECK is by using the eck__entity__edit function provided by the ECK module.

Usage example:

$output = eck__entity__edit($entity_type_name, $entity_bundle_name, $entity_id);