From 584f3e886a7c9850d53fedaab2c8f3d0249bda10 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 20 Feb 2008 13:46:43 +0000 Subject: - Patch #30984 by webchick, keith.smith, kkaefer, Crell et al: provide descriptions for permissions on the permission administration page. --- modules/poll/poll.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/poll/poll.module') 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; } /** -- cgit v1.2.3