Commit dc4acbcb authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#59763, doxygen for user_roles, patch by Ber

parent ce1d915a
......@@ -1671,6 +1671,12 @@ function user_admin_access() {
return $output;
}
/**
* Use this API to retreive an array of all available roles
* @param $membersonly Set this to TRUE to omit the special role 'anonymous'.
* @param $permission A string containing a permission. If set, only roles that have that permission are returned.
* @return An associative array, with the role id as key and the role name as value.
**/
function user_roles($membersonly = 0, $permission = 0) {
$roles = array();
......
......@@ -1671,6 +1671,12 @@ function user_admin_access() {
return $output;
}
/**
* Use this API to retreive an array of all available roles
* @param $membersonly Set this to TRUE to omit the special role 'anonymous'.
* @param $permission A string containing a permission. If set, only roles that have that permission are returned.
* @return An associative array, with the role id as key and the role name as value.
**/
function user_roles($membersonly = 0, $permission = 0) {
$roles = 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