summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 155b3c7ad..68df707a7 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -54,7 +54,14 @@ function poll_theme() {
* Implementation of hook_perm().
*/
function poll_perm() {
- return array('create poll content', 'delete own poll content', 'delete any poll content', 'edit any poll content', 'edit own poll content', 'vote on polls', 'cancel own vote', 'inspect all votes');
+ $perms = node_list_permissions('poll');
+ $perms += array(
+ 'vote on polls' => t('Cast votes on polls.'),
+ 'cancel own vote' => t('Retract and optionally change own votes.'),
+ 'inspect all votes' => t('View voting results.'),
+ );
+
+ return $perms;
}
/**