Index: themes/engines/phptemplate/phptemplate.engine =================================================================== RCS file: /cvs/drupal/drupal/themes/engines/phptemplate/phptemplate.engine,v retrieving revision 1.30 diff -u -r1.30 phptemplate.engine --- themes/engines/phptemplate/phptemplate.engine 13 Mar 2006 21:42:35 -0000 1.30 +++ themes/engines/phptemplate/phptemplate.engine 20 Mar 2006 20:09:47 -0000 @@ -34,6 +34,25 @@ } /** + * Implmentation of settings function to allow themes to add their own settings. + * + * @return + * Form elements. + */ +function phptemplate_settings() { + $key = variable_get('theme_default', 'bluemarine'); + $file = drupal_get_path('theme',$key) . '/template.php'; + if (file_exists($file)) { + include_once "$file"; + } + + $function = $key . '_settings'; + if (function_exists($function)) { + return $function(); + } + return; +} +/** * Execute a template engine call. * * Each call to the template engine has two parts. Namely preparing