we can do drupal_get_path("theme","garland")
but not
$temp = $theme_path;
global $theme_path; $temp = $theme_path;
$temp = function_in_templatephp();

I have tried those after cache has been cleared

Comments

GiorgosK’s picture

Pedro Lozano’s picture

Status: Active » Postponed (maintainer needs more info)

I haven't been able to reproduce this. I've tried a function in the template.php of the theme and it has worked fine.

Are you trying to use a template.php different from the current theme?

Also try calling init_theme() at the beginning of your code, if for some reason your code is being executed before the theme has been initialized then the template.php has not already been included.

mmjvb’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)