validaterole

validate_role
SYNOPSIS

validate_role($role)

DESCRIPTION

validate_role returns true if $role is a supported role, false otherwise.

CODE
  1. function validate_role($role) {
  2.     global $supported_roles;
  3.  
  4.     return in_array($role, $supported_roles);
  5. }

Comments

To add a comment, click here.