diff options
Diffstat (limited to 'modules/system.module')
-rw-r--r-- | modules/system.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system.module b/modules/system.module index e010c27bd..5fccde31e 100644 --- a/modules/system.module +++ b/modules/system.module @@ -94,14 +94,14 @@ function system_menu() { * * Allows users to individually set their theme and time zone. */ -function system_user($type, $edit, &$user) { - if ($type == 'form') { +function system_user($type, $edit, &$user, $category = NULL) { + if ($type == 'form' && $category == 'account') { $options = '<option value="">'. t('Default theme') ."</option>\n"; if (count($themes = list_themes()) > 1) { foreach ($themes as $key => $value) { $options .= "<option value=\"$key\"". (($edit['theme'] == $key) ? ' selected="selected"' : '') .">$key - $value->description</option>\n"; } - $data[t('Theme settings')] = form_item(t('Theme'), "<select name=\"edit[theme]\">$options</select>", t('Selecting a different theme will change the look and feel of the site.')); + $data[] = array('title' => t('Theme settings'), 'data' => form_item(t('Theme'), "<select name=\"edit[theme]\">$options</select>", t('Selecting a different theme will change the look and feel of the site.')), 'weight' => 2); } if (!variable_get('sitewide_timezone', 0)) { @@ -111,7 +111,7 @@ function system_user($type, $edit, &$user) { $zone = $offset * 3600; $zones[$zone] = format_date($timestamp, 'custom', variable_get('date_format_long', 'l, F j, Y - H:i') . ' O', $zone); } - $data[t('Locale settings')] = form_select(t('Time zone'), 'timezone', $edit['timezone'], $zones, t('Select what time you currently have and your time zone settings will be set appropriately.')); + $data[] = array('title' => t('Locale settings'), 'data' => form_select(t('Time zone'), 'timezone', $edit['timezone'], $zones, t('Select what time you currently have and your time zone settings will be set appropriately.')), 'weight' => 2); } return $data; } |