diff --git a/modules/profile.module b/modules/profile.module
index cb6dfb145b1..fbea78419c9 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -36,10 +36,27 @@ function _profile_init() {
$GLOBALS["profile_months"] = array(0 => t("month"), 1 => t("January"), 2 => t("February"), 3 => t("March"), 4 => t("April"), 5 => t("May"), 6 => t("June"), 7 => t("July"), 8 => t("August"), 9 => t("September"), 10 => t("October"), 11 => t("November"), 12 => t("December"));
}
+function profile_help($section) {
+ $output = "";
+
+ switch ($section) {
+ case 'admin/system/modules':
+ $output = "Support for configurable user profiles.";
+ break;
+ case 'admin/system/modules/profile':
+ $output = strtr("When a user creates an account you can ask them to give you some extra information about themselves, as well as letting them use a small picture, called an avatar.
Notes:
- In order for a user to enter information you must check \"enable\".
- In order for other people too see the entered information you must make it \"public\".
- If an item is \"public\", but not enabled, the user can never give it a value and it will never be seen. Public does not imply \"enable\".
- If an item is enabled, but not shown in the registration form the user will have to %edit to place information in the field.
", array("%edit" => l(t("edit their account"), "user/edit") ));
+ break;
+ }
+ return t($output);
+}
+
function profile_system($field) {
- $system["description"] = t("Support for configurable user profiles.");
- $system["admin_help"] = t("When a user creates an account you can ask them to give you some extra information about themselves, as well as letting them use a small picture, called an avatar.
Notes:- In order for a user to enter information you must check \"enable\".
- In order for other people too see the entered information you must make it \"public\".
- If an item is \"public\", but not enabled, the user can never give it a value and it will never be seen. Public does not imply \"enable\".
- If an item is enabled, but not shown in the registration form the user will have to ". l("edit their account", "user/edit") ." to place information in the field.
");
- return $system[$field];
+ $output = "";
+
+ if ($field == "description") {$output = profile_help("admin/system/modules"); }
+ else if ($field == "admin_help") {$output = profile_help("admin/system/modules/profile"); };
+
+ return $output;
}
function profile_settings() {
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index cb6dfb145b1..fbea78419c9 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -36,10 +36,27 @@ function _profile_init() {
$GLOBALS["profile_months"] = array(0 => t("month"), 1 => t("January"), 2 => t("February"), 3 => t("March"), 4 => t("April"), 5 => t("May"), 6 => t("June"), 7 => t("July"), 8 => t("August"), 9 => t("September"), 10 => t("October"), 11 => t("November"), 12 => t("December"));
}
+function profile_help($section) {
+ $output = "";
+
+ switch ($section) {
+ case 'admin/system/modules':
+ $output = "Support for configurable user profiles.";
+ break;
+ case 'admin/system/modules/profile':
+ $output = strtr("When a user creates an account you can ask them to give you some extra information about themselves, as well as letting them use a small picture, called an avatar.
Notes:- In order for a user to enter information you must check \"enable\".
- In order for other people too see the entered information you must make it \"public\".
- If an item is \"public\", but not enabled, the user can never give it a value and it will never be seen. Public does not imply \"enable\".
- If an item is enabled, but not shown in the registration form the user will have to %edit to place information in the field.
", array("%edit" => l(t("edit their account"), "user/edit") ));
+ break;
+ }
+ return t($output);
+}
+
function profile_system($field) {
- $system["description"] = t("Support for configurable user profiles.");
- $system["admin_help"] = t("When a user creates an account you can ask them to give you some extra information about themselves, as well as letting them use a small picture, called an avatar.
Notes:- In order for a user to enter information you must check \"enable\".
- In order for other people too see the entered information you must make it \"public\".
- If an item is \"public\", but not enabled, the user can never give it a value and it will never be seen. Public does not imply \"enable\".
- If an item is enabled, but not shown in the registration form the user will have to ". l("edit their account", "user/edit") ." to place information in the field.
");
- return $system[$field];
+ $output = "";
+
+ if ($field == "description") {$output = profile_help("admin/system/modules"); }
+ else if ($field == "admin_help") {$output = profile_help("admin/system/modules/profile"); };
+
+ return $output;
}
function profile_settings() {