| 2 |
|
|
| 3 |
function mailalias_user($type, $edit, $user) { |
function mailalias_user($type, $edit, $user) { |
| 4 |
switch ($type) { |
switch ($type) { |
| 5 |
case "edit": |
case "form": |
| 6 |
// when user tries to edit his own data $output = |
// when user tries to edit his own data $output = |
| 7 |
$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.")); |
$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.")); |
| 8 |
return array (t('Account information') => $output); |
return array (t('Personal information') => $output); |
| 9 |
case "validate": |
case "validate": |
| 10 |
// validate user data editing. TODO |
// validate user data editing. TODO |
| 11 |
$mailalias = strtr($edit["mailalias"], array (" " => "")); // strip spaces |
$mailalias = strtr($edit["mailalias"], array (" " => "")); // strip spaces |