summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-03-21 11:27:13 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-03-21 11:27:13 -0700
commit11a177068dac685e10f053bde29cb58944763210 (patch)
tree7718adf933aaa9a12642d672ef9c8ef2ad5268bb /modules
parent19f821ef7d8cf7c35fbc790acf2ba3a1f2ac541c (diff)
downloadbrdo-11a177068dac685e10f053bde29cb58944763210.tar.gz
brdo-11a177068dac685e10f053bde29cb58944763210.tar.bz2
Issue #1037352 by jhodgdon: hook_permission() is missing doc about 'warning'.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 5481e8184..7b7158a49 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -1911,6 +1911,9 @@ function hook_system_info_alter(&$info, $file, $type) {
* warning message defined in user_admin_permissions() will be associated
* with the permission and displayed with it on the permission
* administration page. Defaults to FALSE.
+ * - warning: (optional) A translated warning message to display on the
+ * permission administration page. This warning overrides the automatic
+ * warning generated by 'restrict access' being set to TRUE.
*/
function hook_permission() {
return array(