From e688dfe6dbb5338a6cfe13775aacba70534e9a36 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 13 Oct 2003 19:18:39 +0000 Subject: - 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. --- modules/profile.module | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/profile.module') 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 = "\n"; - $output .= "\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 .= ""; - $output .= ""; - $output .= ""; - $output .= ""; - $output .= ""; - $output .= "\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 .= "
fieldenablepublicrequiredshow in registration form
$field[1]". form_checkbox("", "profile_private_fields][", $key, in_array($key, $profile_private_fields)) ."". form_checkbox("", "profile_public_fields][", $key, in_array($key, $profile_public_fields)) ."". form_checkbox("", "profile_required_fields][", $key, in_array($key, $profile_required_fields)) ."". form_checkbox("", "profile_register_fields][", $key, in_array($key, $profile_register_fields)) ."
\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.")); -- cgit v1.2.3