【发布时间】:2013-09-06 18:14:39
【问题描述】:
我尝试使用 hook_custom_theme 为特定内容类型的节点添加页面更改主题,如下所示,但没有成功:
function mymodule_custom_theme() {
if (current_path() == 'node/add/mytype')
return 'anothertheme';
}
我知道函数正在运行,并且我知道比较返回 TRUE。为什么它不起作用?
【问题讨论】:
标签: drupal drupal-7 drupal-themes