【发布时间】:2011-03-14 23:43:52
【问题描述】:
我想写一个drupal模块,它会根据服务器的时间在2个主题之间切换。
请说,我应该实现哪个钩子。
我应该使用
function hook_init(){
global $custom_theme;
$custom_theme = (<condition> ? 'theme1' : 'theme2');
}
?
谢谢。
【问题讨论】:
标签: drupal drupal-6 themes drupal-modules