Index: includes/form.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/form.inc,v retrieving revision 1.36 diff -r1.36 form.inc 106c106 < if (function_exists('theme_' . $form_id)) { --- > if (theme_get_function($form_id)) { 109c109 < elseif (function_exists('theme_' . $callback)) { --- > elseif (theme_get_function($callback)) { Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.267 diff -r1.267 theme.inc 2c2 < // $Id: theme.inc,v 1.267 2005/12/10 19:26:47 dries Exp $ --- > // $Id: theme.inc,v 1.267 2005-12-10 19:26:47 dries Exp $ 160a161,177 > $args = func_get_args(); > $function = array_shift($args); > > if ($func = theme_get_function($function)) { > return call_user_func_array($func, $args); > } > } > > /** > * Determine if a theme function exists, and if so return which one was found. > * > * @param $function > * The name of the theme function to test. > * @return > * An HTML string represents the function found. > */ > function theme_get_function($function) { 168,170d184 < $args = func_get_args(); < $function = array_shift($args); < 173c187 < return call_user_func_array($theme .'_'. $function, $args); --- > return $theme .'_'. $function; 177c191 < return call_user_func_array($theme_engine .'_'. $function, $args); --- > return $theme_engine .'_'. $function; 181c195 < return call_user_func_array('theme_'. $function, $args); --- > return 'theme_'. $function; 182a197 > return false;