Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi i'm trying to insert a form coming from a module into the node_form but i can't figure out what the id of a particular group is to call it in the $form code.
Here is my code (from the plugin):
$form['products'] = array(
'#type' => 'fieldset',
'#title' => t('Products'),
'#group' => 'additional_settings',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 5,
'#tree' => FALSE,
'#attributes' => array('class' => array('container-inline')),
'#prefix' => '<div id="participants">',
'#suffix' => '</div>',
);
This code works but it inserts my form in the additional_setting area (vertical tab) of the node_form but i want it to be inside a particular group (the id of the horizontal tab group is "group_order" and the horizontal tab is "group_order_1").
Is this possible?
Thank you!
Comments
Comment #2
simeIs your form a complete new form? You can't usually insert a whole form into another form - you would be extending the form.