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/comment | |
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/comment')
-rw-r--r-- | modules/comment/comment.module | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 4f3e6dff9..cde48a989 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -241,10 +241,22 @@ function comment_node_type($op, $info) { */ function comment_perm() { return array( - 'administer comments' => t('Manage and approve comments, and configure comment administration settings.'), - 'access comments' => t('View comments attached to content.'), - 'post comments' => t('Add comments to content (approval required).'), - 'post comments without approval' => t('Add comments to content (no approval required).'), + 'administer comments' => array( + 'title' => t('Administer comments'), + 'description' => t('Manage and approve comments, and configure comment administration settings.'), + ), + 'access comments' => array( + 'title' => t('Access comments'), + 'description' => t('View comments attached to content.'), + ), + 'post comments' => array( + 'title' => t('Post comments'), + 'description' => t('Add comments to content (approval required).'), + ), + 'post comments without approval' => array( + 'title' => t('Post comments without approval'), + 'description' => t('Add comments to content (no approval required).'), + ), ); } |