diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-13 19:18:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-13 19:18:39 +0000 |
commit | e688dfe6dbb5338a6cfe13775aacba70534e9a36 (patch) | |
tree | 5a1b29bf310aa4534cddbfa502ea440cc674f752 /modules/profile.module | |
parent | 2ff32224580139f021eed6ac2eff5b05bb709ff7 (diff) | |
download | brdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.gz brdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.bz2 |
- Fixed prefix problem with the book module. Patch by Moshe.
- Usability improvements to the user module: removed some redundant menu
items by taking advantage of the column sorting, added status messages
and so on. Patch by Moshe plus some fixes.
- Made the profile module use the table() function. Patch by Moshe.
- Fixed breadcrumb spacing. Patch by Moshe.
- Fixed colspan problem with node overview table. Patch by Stefan.
- Fixed inconsistency with table sorting. Patch 0122 by Al.
Diffstat (limited to 'modules/profile.module')
-rw-r--r-- | modules/profile.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/profile.module b/modules/profile.module index 8a59cfe0b..74de3729a 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -62,17 +62,17 @@ function profile_settings() { $profile_required_fields = variable_get("profile_required_fields", array()); $profile_register_fields = variable_get("profile_register_fields", array()); - $output = "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">\n"; - $output .= "<tr><th>field</th><th>enable</th><th>public</th><th>required</th><th>show in registration form</th></tr>\n"; + $header = array (t("field"), t("enable"), t("public"), t("required"), t("show in registration form")); + $i=0; foreach ($profile_fields as $key => $field) { - $output .= "<tr><td>$field[1]</td>"; - $output .= "<td style=\"text-align: center;\">". form_checkbox("", "profile_private_fields][", $key, in_array($key, $profile_private_fields)) ."</td>"; - $output .= "<td style=\"text-align: center;\">". form_checkbox("", "profile_public_fields][", $key, in_array($key, $profile_public_fields)) ."</td>"; - $output .= "<td style=\"text-align: center;\">". form_checkbox("", "profile_required_fields][", $key, in_array($key, $profile_required_fields)) ."</td>"; - $output .= "<td style=\"text-align: center;\">". form_checkbox("", "profile_register_fields][", $key, in_array($key, $profile_register_fields)) ."</td>"; - $output .= "</tr>\n"; + $row[$i][] = $field[1]; + $row[$i][] = form_checkbox("", "profile_private_fields][", $key, in_array($key, $profile_private_fields)); + $row[$i][] = form_checkbox("", "profile_public_fields][", $key, in_array($key, $profile_public_fields)); + $row[$i][] = form_checkbox("", "profile_required_fields][", $key, in_array($key, $profile_required_fields)); + $row[$i][] = form_checkbox("", "profile_register_fields][", $key, in_array($key, $profile_register_fields)); + $i++; } - $output .= "</table>\n"; + $output .= table($header, $row); $output .= form_textfield(t("Avatar image path"), "profile_avatar_path", variable_get("profile_avatar_path", "misc/avatars/"), 30, 255, t("Path for avatar directory; it must be writable and visible from the web.")); $output .= form_textfield(t("Avatar maximum dimensions"), "profile_avatar_dimensions", variable_get("profile_avatar_dimensions", "85x85"), 10, 10, t("Maximum dimensions for avatars.")); |