Option to restrict access to specific poll types
siteograf - January 2, 2009 - 20:54
| Project: | Advanced Poll |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello,
I think it will be very useful to have not only create polls option on Permissions page, but both create Binary polls and create Ranking polls
I like your module, but my clients don't need Ranking polls. It's good practice to not distract clients with features they don't need.
Thanks.

#1
A short-term solution for you:
The types of polls supported (in this case, binary and ranking) is currently controlled by files in a "modes" directory. An easy way for you to disable Ranking polls is to remove/rename the ranking.inc file in the modes directory; the Advanced Poll module only displays polling modes/types that are described in their eponymous include file in that directory.
#2
I have tried that, but the polls are still there. The only thing that changes is you get a nice Warning box.