You are here

function hosting_client_user_form_validate in Hosting 6.2

Same name and namespace in other branches
  1. 5 client/hosting_client.access.inc \hosting_client_user_form_validate()
  2. 7.4 client/hosting_client.access.inc \hosting_client_user_form_validate()
  3. 7.3 client/hosting_client.access.inc \hosting_client_user_form_validate()

Validate the submission of a user form.

See also

hosting_client_user()

1 call to hosting_client_user_form_validate()
hosting_client_user in client/hosting_client.access.inc
Implements hook_user().

File

client/hosting_client.access.inc, line 132
Control client node access.

Code

function hosting_client_user_form_validate($edit) {
  if (array_key_exists('hosting_client', $edit) && $edit['hosting_client'] && !($client = hosting_get_client($edit['hosting_client']))) {
    form_set_error('hosting_client', 'Please fill in a valid client');
  }
}