How to remove the submit button on the form included by drupal_get_form? I have a hook_field_widget_form where I call drupal_get_form multiple times.

Here is my code: 

foreach ($suppliers AS $supplier_id =&gt; $supplier) {
    $delivery_information = sbsl_order_delivery_information_new();

    $element['suppliers'][$supplier_id] = array(
      '#type' =&gt; 'fieldset',
      '#title' =&gt; $supplier['supplier_information']['visible_name'],
      '#collapsible' =&gt; TRUE,
      '#collapsed' =&gt; TRUE,
    );

    $delivery_information_form = drupal_get_form('sbsl_order_delivery_information_1_form_' . $supplier_id);
    $element['suppliers'][$supplier_id]['delivery_information'] = $delivery_information_form;
  }


How can I remove the submit button on the form included by drupal_get_form, and only use the submit of hook_field_widget_form to submit all the forms included by drupal_get_form?
If you look at the function drupal_render it will ignore all elements marked as #printed so just add that to the submit button's array.

You'll need to inspect the $delivery_information_form array to see exactly where your button is at, and when you find it you can do something like this:

  $delivery_information_form = drupal_get_form('sbsl_order_delivery_information_1_form_' . $supplier_id);
  $delivery_information_form['path']['to']['button']['#printed'] = TRUE;


before adding it to the $element array.