diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-27 16:33:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-27 16:33:05 +0000 |
commit | 5349ff1d26d087cd86b6875162cbd97ddaa3fcc7 (patch) | |
tree | 49ca0b31f8a5a655dcde448b3a011342b4814416 /modules/system/system.admin.inc | |
parent | 91e7dc13652fe432cc9da9aec29170d8796368e1 (diff) | |
download | brdo-5349ff1d26d087cd86b6875162cbd97ddaa3fcc7.tar.gz brdo-5349ff1d26d087cd86b6875162cbd97ddaa3fcc7.tar.bz2 |
- Patch #445966 by Damien Tournoud: allow theme engine and theme settings form.
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index e7f51ff18..fac8ab919 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -468,7 +468,7 @@ function system_theme_settings(&$form_state, $key = '') { // Call engine-specific settings. $function = $themes[$key]->prefix . '_engine_settings'; if (function_exists($function)) { - $group = $function($settings); + $group = $function($settings, $form); if (!empty($group)) { $form['engine_specific'] = array('#type' => 'fieldset', '#title' => t('Theme-engine-specific settings'), '#description' => t('These settings only exist for all the templates and styles based on the %engine theme engine.', array('%engine' => $themes[$key]->prefix))); $form['engine_specific'] = array_merge($form['engine_specific'], $group); @@ -480,7 +480,7 @@ function system_theme_settings(&$form_state, $key = '') { $function = $themes[$key]->prefix . '_settings'; } if (function_exists($function)) { - $group = $function($settings); + $group = $function($settings, $form); if (!empty($group)) { $form['theme_specific'] = array('#type' => 'fieldset', '#title' => t('Theme-specific settings'), '#description' => t('These settings only exist for the %theme theme and all the styles based on it.', array('%theme' => $themes[$key]->info['name']))); $form['theme_specific'] = array_merge($form['theme_specific'], $group); |