diff options
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 9668d3b07..b23979937 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -737,8 +737,9 @@ function user_password($length = 10) { * An array whose keys are the role IDs of interest, such as $user->roles. * * @return - * An array indexed by role ID. Each value is an array whose keys are the - * permission strings for the given role ID. + * If $roles is a non-empty array, an array indexed by role ID is returned. + * Each value is an array whose keys are the permission strings for the given + * role ID. If $roles is empty nothing is returned. */ function user_role_permissions($roles = array()) { $cache = &drupal_static(__FUNCTION__, array()); |