2
validaterole
validate_role
SYNOPSIS
validate_role($role)
DESCRIPTION
validate_role
returns true
if $role
is a supported role, false
otherwise.
CODE
- function validate_role($role) {
- global $supported_roles;
- return in_array($role, $supported_roles);
- }
Comments