Skip to content
Snippets Groups Projects
Commit 11a17706 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 19f821ef
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment