diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2014-01-23 11:29:56 -0800 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2014-01-23 11:29:56 -0800 |
commit | a2dee490c4c1196f429edef97ae94077a0f9749d (patch) | |
tree | 2e2be9770cd750ffa7bfef0efb6f62d1a8bc2e4e /modules/user | |
parent | fd710c02edfce294919a82a7e456c3d6b652c7fc (diff) | |
download | brdo-a2dee490c4c1196f429edef97ae94077a0f9749d.tar.gz brdo-a2dee490c4c1196f429edef97ae94077a0f9749d.tar.bz2 |
Issue #2158383 by laurii, joachim: Fix documentation of return value in user_role_permissions
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()); |