Commit 11a17706 authored by webchick's avatar webchick

Issue #1037352 by jhodgdon: hook_permission() is missing doc about 'warning'.

parent 19f821ef
......@@ -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(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment