开发者

Editing the class attribute for a<body> tag in a drupal page

I'm working on a drupal we开发者_如何学Pythonbsite that has a different class for the tag of each page. I'm trying to figure out how to edit this class attribute. Does anyone know?


See http://api.drupal.org/api/drupal/includes--theme.inc/function/template_preprocess_page/6.

You can create yourmodule_preprocess_page(&$vars) and then change $vars['body_classes'].

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜