Drupal 6 poll theming

Theming polls is not that hard when you know what to do:

First, you can use templates to theme everything except the radios:

  • poll-vote.tpl.php
  • poll-vote-block.tpl.php (must also copy over poll-vote.tpl.php)
  • poll-results.tpl.php
  • poll-results-block.tpl.php (must also copy over poll-results.tpl.php)
  • poll-bar.tpl.php
  • poll-bar-block.tpl.php (must also copy over poll-bar.tpl.php)

Then, use theme_radio() and theme_radios() to theme the rest.

Tags

Internal References

Article Type

General