\midgard_admin_user_validator

Form validation functionality

Summary

Methods
Properties
Constants
is_username_available()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

is_username_available()

is_username_available(array  $fields) : mixed

Test if username is available.

If the formdata contains a person GUID, it is ignored during the search

Parameters

array $fields

Returns

mixed —

True on success, array of error messages otherwise