Commit e3ad7751 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#172642 by dvessel: block theme file name suggestion for poll nodes

parent 306fca8e
......@@ -502,6 +502,10 @@ function template_preprocess_poll_vote(&$variables) {
$variables['vote'] = drupal_render($form['vote']);
$variables['rest'] = drupal_render($form);
$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';
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment