Commit 5f828070 authored by Chris Herberte's avatar Chris Herberte

#419548 (aaronbauman) remove profile module dependance

parent 01ed6e4c
......@@ -32,7 +32,7 @@ function email_registration_user($op, &$edit, &$account, $category = NULL) {
function email_registration_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'user_register':
if (module_exists('profile') && is_array($form['account'])) {
if (is_array($form['account'])) {
$form['account']['name']['#type'] = 'hidden';
$form['account']['name']['#value'] = user_password();
$form['account']['mail']['#title'] = t('E-mail');
......
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