public static validate_groupname ( $value, |
||
$control | The control that defines the value | |
$form | The container that holds the control | |
$allowed_name | string | An optional name which overrides the check and is always allowed |
$warning | string | An optional error message |
return | array | An empty array if the value exists, or an array with strings describing the errors |