aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/language
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-06 16:07:05 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-07-14 12:02:43 -0400
commit4a64e2c2b3d4b39cdedec72551076595a9cd6a6e (patch)
tree78d4dbece5ca66480035b96db54e74296be0e749 /phpBB/language
parent0e86c0247381b141cba53b6ab3fbdba276c521e3 (diff)
downloadforums-4a64e2c2b3d4b39cdedec72551076595a9cd6a6e.tar
forums-4a64e2c2b3d4b39cdedec72551076595a9cd6a6e.tar.gz
forums-4a64e2c2b3d4b39cdedec72551076595a9cd6a6e.tar.bz2
forums-4a64e2c2b3d4b39cdedec72551076595a9cd6a6e.tar.xz
forums-4a64e2c2b3d4b39cdedec72551076595a9cd6a6e.zip
[ticket/11582] Fix documentation for adding permissions
PHPBB3-11582
Diffstat (limited to 'phpBB/language')
-rw-r--r--phpBB/language/en/acp/permissions_phpbb.php34
1 files changed, 7 insertions, 27 deletions
diff --git a/phpBB/language/en/acp/permissions_phpbb.php b/phpBB/language/en/acp/permissions_phpbb.php
index edcc812830..d0128db34a 100644
--- a/phpBB/language/en/acp/permissions_phpbb.php
+++ b/phpBB/language/en/acp/permissions_phpbb.php
@@ -33,34 +33,14 @@ if (empty($lang) || !is_array($lang))
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
/**
-* MODDERS PLEASE NOTE
+* EXTENSION-DEVELOPERS PLEASE NOTE
*
-* You are able to put your permission sets into a separate file too by
-* prefixing the new file with permissions_ and putting it into the acp
-* language folder.
-*
-* An example of how the file could look like:
-*
-* <code>
-*
-* if (empty($lang) || !is_array($lang))
-* {
-* $lang = array();
-* }
-*
-* // Adding new category
-* $lang['permission_cat']['bugs'] = 'Bugs';
-*
-* // Adding new permission set
-* $lang['permission_type']['bug_'] = 'Bug Permissions';
-*
-* // Adding the permissions
-* $lang = array_merge($lang, array(
-* 'acl_bug_view' => 'Can view bug reports', 'cat' => 'bugs'),
-* 'acl_bug_post' => 'Can post bugs', // Using a phpBB category here
-* ));
-*
-* </code>
+* You are able to put your permission sets into your extension.
+* The permissions logic should be added via the 'core.permissions' event.
+* You can easily add new permission categories, types and permissions, by
+* simply merging them into the respective arrays.
+* The respective language strings should be added into a language file, that
+* start with 'permissions_', so they are automatically loaded within the ACP.
*/
$lang = array_merge($lang, array(