Index: mailalias.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/mailalias/mailalias.module,v
retrieving revision 1.10
diff -u -r1.10 mailalias.module
--- mailalias.module	29 Nov 2005 18:37:30 -0000	1.10
+++ mailalias.module	10 Mar 2006 19:22:45 -0000
@@ -4,8 +4,23 @@
 function mailalias_user($type, &$edit, &$user, $category = NULL) {
   if ($type == 'form' && $category == 'account') {
     // when user tries to edit his own data $output =
-    $output = form_textfield(t('Email aliases'), 'mailalias', $user->mailalias, 70, 255, t('Add any additional email addresses, separated by commas. We use these to identify the author of email submissions. These email addresses are private and are not shared with other users.'));
-    return array(array('title' => t('Personal information'), 'data' => $output, 'weight' => 2));
+		$form['mailalias'] = array(
+			'#type' => 'fieldset',
+			'#title' => t('Mailalias'),
+			'#weight' => 5,
+			'#collapsible' => TRUE,
+			'#collapsed' => FALSE,
+		);
+		$form['mailalias']['mailalias'] = array(	
+			'#type' => 'textfield',
+			'#title' => t('Email aliases'),
+			'#default_value' => $edit["mailalias"] ,
+			'#size' => 70,
+			'#maxlength' => 255,
+			'#description' => t('Add any additional email addresses, separated by commas. We use these to identify the author of email submissions. These email addresses are private and are not shared with other users.'),
+			'#required' => FALSE,
+		);
+    return $form;
   }
   else if ($type == 'validate' && $category == 'account') {
     $mailalias = strtr($edit["mailalias"], array (" " => "")); // strip spaces
