Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.422 diff -u -r1.422 theme.inc --- includes/theme.inc 6 May 2008 12:18:45 -0000 1.422 +++ includes/theme.inc 10 May 2008 13:31:13 -0000 @@ -1922,3 +1922,16 @@ $variables['template_files'][] = 'block-' . $variables['block']->module . '-' . $variables['block']->delta; } +/** + * Returns a relative path from base to a file in the currently + * selected theme. Useful for providing relative paths to files + * in the theme directory. + * + * @param $path + * The path relative to the theme directory. + * +*/ +function base_path_to_theme($path) { + return base_path() . path_to_theme() . "/$path" ; +} +