diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-09 15:15:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-09 15:15:55 +0000 |
commit | d59ba41f65a26cdd31ae9da5b847be008cd365dd (patch) | |
tree | d430e5cfc24c758d856a44687b0676fcb084a6c6 /modules/poll | |
parent | c9c35d2d58e7edede8548b42481a364c86ce642d (diff) | |
download | brdo-d59ba41f65a26cdd31ae9da5b847be008cd365dd.tar.gz brdo-d59ba41f65a26cdd31ae9da5b847be008cd365dd.tar.bz2 |
#313213 by maartenvg, Gábor Hojtsy: Add a 'title' attribute for permissions to allow for localization of permission names
Diffstat (limited to 'modules/poll')
-rw-r--r-- | modules/poll/poll.module | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 5d547549d..5dd356f1b 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -56,9 +56,18 @@ function poll_theme() { function poll_perm() { $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.'), + 'vote on polls' => array( + 'title' => t('Vote on polls'), + 'description' => t('Cast votes on polls.'), + ), + 'cancel own vote' => array( + 'title' => t('Cancel own vote'), + 'description' => t('Retract and optionally change own votes.'), + ), + 'inspect all votes' => array( + 'title' => t('Inspect all votes'), + 'description' => t('View voting results.'), + ), ); return $perms; |