【问题标题】:Block page is not affecting with custom theme阻止页面不影响自定义主题
【发布时间】:2011-11-11 09:51:45
【问题描述】:

我在我的模块中使用custome模块,代码如下。

function mymodule_init() {
   global $custom_theme;   
   $custom_theme = 'bluemarine';
   init_theme();
}

这适用于除块页面(管理员/构建/块)之外的所有其他页面。阻止页面仅采用默认主题。我想要从 mymodule 分配给块页面的客户主题。我该怎么做?

【问题讨论】:

    标签: php drupal drupal-6 drupal-modules


    【解决方案1】:

    我在 D7 中工作并且尚未对此进行测试,但我怀疑由于 Drupal 使用默认主题 7 呈现管理页面,它可能会从路径名中获取它的 que。首先尝试更改路径以查看是否有效。

    【讨论】:

      猜你喜欢
      • 2013-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-12
      • 2013-12-06
      • 2011-06-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多