--- user_register_notify/user_register_notify.module 2006-11-12 13:08:32.000000000 -0500 +++ user_register_notify_mod/user_register_notify.module 2007-12-13 01:52:15.000000000 -0500 @@ -17,14 +17,26 @@ function user_register_notify_user($op, // In case when accounts must be created with administrator's approval // there is already a 'pending approval' e-mail notification. if ($account->uid != 1 && $account->status) { + $account_info = user_load(array('uid' => $account->uid)); $subject = t('Account details for !username at !site', array('!username' => $account->name, '!site' => variable_get('site_name', 'Drupal'))); $to = $from = variable_get('site_mail', ini_get('sendmail_from')); - + $body = t("!user (!uri) has created an account.\n\n!edit-uri", array('!uri' => url("user/$account->uid", NULL, NULL, TRUE), '!user' => $account->name, '!edit-uri' => url("user/$account->uid/edit", NULL, NULL, TRUE))); + + $body .= "\n\nAccount Information:\n\n"; + + $result = db_query('SELECT * FROM {profile_fields} ORDER BY category, weight'); + while ($field = db_fetch_object($result)) { + $options[$field->name] = $field->title; + } + foreach ($options as $key => $value) { + $body .= $value . ": " . $account_info->$key . "\n\n"; + } + drupal_mail( 'user-register-notify-admin', $to, $subject, - t("!user (!uri) has created account.\n\n!edit-uri", array('!uri' => url("user/$account->uid", NULL, NULL, TRUE), '!user' => $account->name, '!edit-uri' => url("user/$account->uid/edit", NULL, NULL, TRUE))), + $body, $from ); }