By _dynamic on
Hi!
I'm struggling with poll style. I have put a "Most recent poll" block on my front page, and I have noticed that Drupal adds a colon after the poll title (not the block title). Anybody knows how to remove that little colon? I have a question as a title and don't want a colon after the question. I have searched in poll.module but haven't found this command.
Thanks
Comments
...
Hi!
I have this problem also. I found in the code (in poll_view_voting function):
So.. the form API generate the colon. I don't have simple idea to the problem....
I found exactly that line
I found exactly that line but when I changed it I got an error message. Will try again...
2 way
2 way, that I prefer:
Overwrite this line:
(You can analyse by the form id, which label do you want.)
Question mark + colon --> question mark ONLY
I didn't want to hack Form API, so I just made a minor replacement in the poll module.
Go to "poll.module" and locate the function called "theme_poll_view_voting".
Replace the line 392:
$output .= drupal_render($form['choice']);... with the line:
$output .= str_replace('?:', '?', drupal_render($form['choice']));--
madjoe
--
www.jazzit.hr
Great, that worked! Can you
Great,
that worked! Can you explain what these lines do? Exactly where is the colon created the first time?