Vertical tabs are shown after the submission buttons in third-party modules

kiamlaluno - October 25, 2009 - 21:49
Project:Vertical Tabs
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I added the support for Vertical Tabs to Nodewords, and the fieldsets are rendered with a weight lower than the weight of the submission buttons (see the attachment).

AttachmentSize
Voila_Capture_42.png82.24 KB

#1

Dave Reid - November 27, 2009 - 16:02
Status:active» by design

It's a matter of weight. Buttons by default with system_settings_form have no weight, so any additions in hook_form_alter() that also have no weight will be placed below the buttons. You should add the following in your own module's code:

  $form = system_settings_form($form);
  $form['buttons'] += array('#weight' => 100);

#2

kiamlaluno - November 27, 2009 - 16:43
Status:by design» duplicate

This is a duplicate of #626200: Fieldsets rendered by Vertical tabs are shown under the submission buttons, which was open by me.
I apologize for the duplicate report, and I thank you for your support on understanding the issue I was having.

 
 

Drupal is a registered trademark of Dries Buytaert.