Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ba5fce22
Commit
ba5fce22
authored
Oct 17, 2007
by
Gábor Hojtsy
Browse files
#184199
by quicksketch: proper weights for poll form fields, so the fields are not reordered
parent
e6e59359
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/poll/poll.module
View file @
ba5fce22
...
...
@@ -202,7 +202,7 @@ function poll_form(&$node, $form_state) {
// Add a wrapper for the choices and more button.
$form
[
'choice_wrapper'
]
=
array
(
'#tree'
=>
FALSE
,
'#weight'
=>
-
5
,
'#weight'
=>
-
4
,
'#prefix'
=>
'<div class="clear-block" id="poll-choice-wrapper">'
,
'#suffix'
=>
'</div>'
,
);
...
...
@@ -251,7 +251,7 @@ function poll_form(&$node, $form_state) {
'#type'
=>
'fieldset'
,
'#collapsible'
=>
TRUE
,
'#title'
=>
t
(
'Poll settings'
),
'#weight'
=>
-
4
,
'#weight'
=>
-
3
,
);
$form
[
'settings'
][
'active'
]
=
array
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment