Delegation field-group misplaced
guidot - March 16, 2008 - 10:10
| Project: | Taxonomy Delegate |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | NancyDru |
| Status: | closed |
Jump to:
Description
Just a small usability improvement:
The Delegation field-group is printed below Submit/Delete buttons. I think there should be no form elements below them, so I added a weight of 0 to the field-set:
<?php
$form['taxonomy_delegate'] = array(
'#type' => 'fieldset',
'#title' => t('Delegation'),
'#description' => t('Use this section to delegate authority to maintain this vocabulary to a specific role.'),
'#collapsible' => true,
'#collapsed' => false,
'#weight' => 0,
);
?>With that change the fieldset is printed directly below the Vocabulary name field.
I think it would be better to have it just above the Submit/Delete buttons, but already a weight of 1 puts it below. So I guess the weight of the Submit/Delete buttons has to be overwritten, but I don't know how to achive that.

#1
Hmm, it doesn't do this for me. Which theme are you using? Which Drupal release? Do you have any other modules that are adding form elements to the vocabulary?
#2
Ahh, it is I who has the spoiler here. I have the Meta Tags module and it moves the buttons.
I am adding weight of 1 (because 0 puts the fieldset between the name and description on my site. And I am moving the buttons down.
There is a bit more flexibility in 6.x, but I will still leave it at the bottom.
For the moment, the fix will be in the -dev release for both branches.
#3
Automatically closed -- issue fixed for two weeks with no activity.