我在哪里可以找到html.tpl.php$head变量内容生成/标记


Where can I find the html.tpl.php $head variable content generation/markup?

我正试图定位变量$head的生成位置,更重要的是定位标记。基本上,哪个文件包含$head变量的标记。

我的html.tpl.php是:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>
<head profile="<?php print $grddl_profile; ?>">
  <?php print $head; ?>
  <title><?php print $head_title; ?></title>
  <?php print $styles; ?>
  <?php print $scripts; ?>
</head>
<body class="<?php print $classes; ?>" <?php print $attributes;?>>
  <div id="skip-link">
    <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
  </div>
  <?php print $page_top; ?>
  <?php print $page; ?>
  <?php print $page_bottom; ?>
</body>
</html>

这些在其他文件中声明,并且可以依赖于主题(如果是主题)的template.php文件,也可以在process_html函数或类似函数中。

这个$head是非常核心的,我会发现它来自:

包括/them.inc:

$variables['head'] = drupal_get_html_head();

它位于template_process_html()函数内部。

我从来没有使用过Drupal,但大多数头文件都位于includes中的模板文件夹中,通常名为header.tpl,我相信这就是你要问的头文件在哪里?`