Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e3ad7751
Commit
e3ad7751
authored
Sep 06, 2007
by
Gábor Hojtsy
Browse files
#172642
by dvessel: block theme file name suggestion for poll nodes
parent
306fca8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/poll/poll.module
View file @
e3ad7751
...
@@ -502,6 +502,10 @@ function template_preprocess_poll_vote(&$variables) {
...
@@ -502,6 +502,10 @@ function template_preprocess_poll_vote(&$variables) {
$variables
[
'vote'
]
=
drupal_render
(
$form
[
'vote'
]);
$variables
[
'vote'
]
=
drupal_render
(
$form
[
'vote'
]);
$variables
[
'rest'
]
=
drupal_render
(
$form
);
$variables
[
'rest'
]
=
drupal_render
(
$form
);
$variables
[
'block'
]
=
$form
[
'#block'
];
$variables
[
'block'
]
=
$form
[
'#block'
];
// If this is a block, allow a different tpl.php to be used.
if
(
$variables
[
'block'
])
{
$variables
[
'template_files'
][]
=
'poll-vote-block'
;
}
}
}
/**
/**
...
...
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