Commit c997684d authored by Dries's avatar Dries

- Patch #1037352 by David_Rothstein: clarified usage of 'warning' parameter.

parent 2edad6ef
...@@ -1908,12 +1908,19 @@ function hook_system_info_alter(&$info, $file, $type) { ...@@ -1908,12 +1908,19 @@ function hook_system_info_alter(&$info, $file, $type) {
* have inherent security risks across a variety of potential use cases * have inherent security risks across a variety of potential use cases
* (for example, the "administer filters" and "bypass node access" * (for example, the "administer filters" and "bypass node access"
* permissions provided by Drupal core). When set to TRUE, a standard * permissions provided by Drupal core). When set to TRUE, a standard
* warning message defined in user_admin_permissions() will be associated * warning message defined in user_admin_permissions() and output via
* with the permission and displayed with it on the permission * theme_user_permission_description() will be associated with the
* administration page. Defaults to FALSE. * permission and displayed with it on the permission administration page.
* - warning: (optional) A translated warning message to display on the * Defaults to FALSE.
* permission administration page. This warning overrides the automatic * - warning: (optional) A translated warning message to display for this
* warning generated by 'restrict access' being set to TRUE. * permission on the permission administration page. This warning overrides
* the automatic warning generated by 'restrict access' being set to TRUE.
* This should rarely be used, since it is important for all permissions to
* have a clear, consistent security warning that is the same across the
* site. Use the 'description' key instead to provide any information that
* is specific to the permission you are defining.
*
* @see theme_user_permission_description()
*/ */
function hook_permission() { function hook_permission() {
return array( 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