diff options
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r-- | modules/poll/poll.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 9499a6764..5b75f69d8 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -207,6 +207,10 @@ function poll_menu($may_cache) { 'type' => MENU_CALLBACK); } else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'poll') .'/poll.css'); + if (arg(0) == 'node' && is_numeric(arg(1))) { $node = node_load(arg(1)); if ($node->type == 'poll') { |