直接引用全局变量就行:
参考:
代码测试:
global $theme, $theme_key; echo $theme; echo ‘<br>‘; echo $theme_key;
结果:
drupal7 获取当前使用的主题的名称
原文:http://www.cnblogs.com/zjfblog/p/7203870.html