Hello!
I'd like to ask if there is a way to change the legend of the Pollfield dieldset to simply "Poll" or any other text for that matter. The term Pollfield isn't really friendly with users and it would be nice if this could be changed.
I already tried dumping the $form variable but I can't seem to find which key I should change using hook_form_alter in order for this to work.
Also, there are some typos in the "Delete votes" part. It says "Delet votes".
| Comment | File | Size | Author |
|---|---|---|---|
| Capture.PNG | 46.26 KB | Rubix |
Comments
Comment #1
dunx commented+1 for changing "Pollfield".
Also noticed the other typo and just raised an issue on that: http://drupal.org/node/1163176
Comment #2
bryan kennedy commentedHmm, I'm tempted to say that this is something that should be handled by string replacement. This can be handled in your site's settings.php file or with the ,a href="http://drupal.org/project/stringoverrides">String Replacement module.
That being said, I think you are on to something here. The term "pollfield" is a good term for the module, but isn't very friendly for your site's content authors, who likely don't care about the Drupal cck fields structure. Rather than replace the fieldset name with another inflexible term like "poll" I'd like to make this fieldset title the same as the field label you define when you create the content type. What do folks think about that?
Comment #3
dunx commentedThat makes perfect sense to me.
Comment #4
bryan kennedy commentedI fixed this in the latest dev branch. The fieldset are now named the same as the name of the field, no longer using the term pollfield.