summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-16 19:57:41 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-16 19:57:41 +0000
commitd5581d94cb7afadb1d4e421f5dfa26536fc891b2 (patch)
tree9057edc8b6cd199bb4039e6146824f4469524f62 /modules/system
parent93d496bad8f8c9be9eb3a88e9c0c342bf3b6b184 (diff)
downloadbrdo-d5581d94cb7afadb1d4e421f5dfa26536fc891b2.tar.gz
brdo-d5581d94cb7afadb1d4e421f5dfa26536fc891b2.tar.bz2
- Patch #41124 by amanuel/owe: make the logo upload work.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module25
1 files changed, 19 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index e8e544487..63afa7045 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1056,15 +1056,22 @@ function system_theme_settings($key = '') {
if ((!$key) || in_array('logo', $features)) {
$form['logo'] = array('#type' => 'fieldset', '#title' => t('Logo image settings'));
$form['logo']["default_logo"] = array(
- '#type' => 'checkbox', '#title' => t('Use the default logo'), '#default_value' => $settings['default_logo'], '#tree' => FALSE,
+ '#type' => 'checkbox',
+ '#title' => t('Use the default logo'),
+ '#default_value' => $settings['default_logo'],
+ '#tree' => FALSE,
'#description' => t('Check here if you want the theme to use the logo supplied with it.')
);
$form['logo']['logo_path'] = array(
- '#type' => 'textfield', '#title' => t('Path to custom logo'),
+ '#type' => 'textfield',
+ '#title' => t('Path to custom logo'),
+ '#default_value' => $settings['logo_path'],
'#description' => t('The path to the file you would like to use as your logo file instead of the default logo.'));
$form['logo']['logo_upload'] = array(
- '#type' => 'file', '#title' => t('Upload logo image'), '#maxlength' => 40,
+ '#type' => 'file',
+ '#title' => t('Upload logo image'),
+ '#maxlength' => 40,
'#description' => t("If you don't have direct file access to the server, use this field to upload your logo.")
);
}
@@ -1074,16 +1081,22 @@ function system_theme_settings($key = '') {
$form['favicon'] = array('#type' => 'fieldset', '#title' => t('Shortcut icon settings'));
$form['favicon']['text'] = array('#value' => t('Your shortcut icon or \'favicon\' is displayed in the address bar and bookmarks of most browsers.'));
$form['favicon']['default_favicon'] = array(
- '#type' => 'checkbox', '#title' => t('Use the default shortcut icon.'), '#default_value' => $settings['default_favicon'],
+ '#type' => 'checkbox',
+ '#title' => t('Use the default shortcut icon.'),
+ '#default_value' => $settings['default_favicon'],
'#description' => t('Check here if you want the theme to use the default shortcut icon.')
);
$form['favicon']['favicon_path'] = array(
- '#type' => 'textfield', '#title' => t('Path to custom icon'), '#default_value' => $settings['favicon_path'],
+ '#type' => 'textfield',
+ '#title' => t('Path to custom icon'),
+ '#default_value' => $settings['favicon_path'],
'#description' => t('The path to the image file you would like to use as your custom shortcut icon.')
);
$form['favicon']['favicon_upload'] = array(
- '#type' => 'file', '#title' => t('Upload icon image'), '#description' => t("If you don't have direct file access to the server, use this field to upload your shortcut icon.")
+ '#type' => 'file',
+ '#title' => t('Upload icon image'),
+ '#description' => t("If you don't have direct file access to the server, use this field to upload your shortcut icon.")
);
}