Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
8cd5210f
Commit
8cd5210f
authored
May 30, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#51561
by dww: fixed broken HTML.
parent
9a65cabf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
16 deletions
+10
-16
modules/poll.module
modules/poll.module
+5
-8
modules/poll/poll.module
modules/poll/poll.module
+5
-8
No files found.
modules/poll.module
View file @
8cd5210f
...
...
@@ -380,14 +380,11 @@ function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vot
$output
.
=
'<div class="poll">'
;
$output
.
=
$results
;
$output
.
=
'<div class="total">'
.
t
(
'Total votes: %votes'
,
array
(
'%votes'
=>
$votes
))
.
'</div>'
;
if
(
isset
(
$vote
)
&&
$vote
>
-
1
)
{
if
(
user_access
(
'cancel own vote'
))
{
$form
[
'#action'
]
=
url
(
"poll/cancel/
$nid
"
);
$form
[
'choice'
]
=
array
(
'#type'
=>
'hidden'
,
'#value'
=>
$vote
);
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Cancel your vote'
));
$output
.
=
drupal_get_form
(
'poll_cancel_form'
,
$form
);
}
$output
.
=
'</div>'
;
if
(
isset
(
$vote
)
&&
$vote
>
-
1
&&
user_access
(
'cancel own vote'
))
{
$form
[
'#action'
]
=
url
(
"poll/cancel/
$nid
"
);
$form
[
'choice'
]
=
array
(
'#type'
=>
'hidden'
,
'#value'
=>
$vote
);
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Cancel your vote'
));
$output
.
=
drupal_get_form
(
'poll_cancel_form'
,
$form
);
}
$output
.
=
'</div>'
;
}
...
...
modules/poll/poll.module
View file @
8cd5210f
...
...
@@ -380,14 +380,11 @@ function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vot
$output
.
=
'<div class="poll">'
;
$output
.
=
$results
;
$output
.
=
'<div class="total">'
.
t
(
'Total votes: %votes'
,
array
(
'%votes'
=>
$votes
))
.
'</div>'
;
if
(
isset
(
$vote
)
&&
$vote
>
-
1
)
{
if
(
user_access
(
'cancel own vote'
))
{
$form
[
'#action'
]
=
url
(
"poll/cancel/
$nid
"
);
$form
[
'choice'
]
=
array
(
'#type'
=>
'hidden'
,
'#value'
=>
$vote
);
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Cancel your vote'
));
$output
.
=
drupal_get_form
(
'poll_cancel_form'
,
$form
);
}
$output
.
=
'</div>'
;
if
(
isset
(
$vote
)
&&
$vote
>
-
1
&&
user_access
(
'cancel own vote'
))
{
$form
[
'#action'
]
=
url
(
"poll/cancel/
$nid
"
);
$form
[
'choice'
]
=
array
(
'#type'
=>
'hidden'
,
'#value'
=>
$vote
);
$form
[
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Cancel your vote'
));
$output
.
=
drupal_get_form
(
'poll_cancel_form'
,
$form
);
}
$output
.
=
'</div>'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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