Commit 7a6b4e23 authored by anarcat's avatar anarcat

make emails mandatory in registration form for anonymous users

parent 0f6e1846
......@@ -69,6 +69,11 @@ function hosting_signup_form() {
$function($form['client'], $state, 'client_node_form');
}
$form['client']['client_name'] = $form['client']['title'];
if (variable_get('hosting_client_register_user', FALSE) && !$user->uid) {
$form['client']['email']['#required'] = TRUE;
$form['client']['email_confirm']['#required'] = TRUE;
}
unset($form['client']['title']);
$form['new_client'] = array('#type' => 'value', '#value' => TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment