summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-09 15:15:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-09 15:15:55 +0000
commitd59ba41f65a26cdd31ae9da5b847be008cd365dd (patch)
treed430e5cfc24c758d856a44687b0676fcb084a6c6 /modules/block
parentc9c35d2d58e7edede8548b42481a364c86ce642d (diff)
downloadbrdo-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/block')
-rw-r--r--modules/block/block.module10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/block/block.module b/modules/block/block.module
index 7c976ad24..f56e428dc 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -105,8 +105,14 @@ function block_theme() {
*/
function block_perm() {
return array(
- 'administer blocks' => t('Select which blocks are displayed, and arrange them on the page.'),
- 'use PHP for block visibility' => t('Enter PHP code in the field for block visibility settings. %warning', array('%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
+ 'administer blocks' => array(
+ 'title' => t('Administer blocks'),
+ 'description' => t('Select which blocks are displayed, and arrange them on the page.'),
+ ),
+ 'use PHP for block visibility' => array(
+ 'title' => t('Use PHP for block visibility'),
+ 'description' => t('Enter PHP code in the field for block visibility settings. %warning', array('%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
+ ),
);
}