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
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

jhereg69 - March 10, 2009 - 21:59
Title:choise what to use Binary poll/Ranking poll» Option to restrict access to specific poll types
Assigned to:siteograf» Anonymous

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

bejii - May 10, 2009 - 18:12

I have tried that, but the polls are still there. The only thing that changes is you get a nice Warning box.

 
 

Drupal is a registered trademark of Dries Buytaert.