在哪里可以找到 html.tpl.php $head 变量内容 generation/markup?

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>

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

这些在其他文件中声明并且它可以依赖 - 通常它们在主题的 template.php 文件中(如果它是一个主题)并且可能在 process_html 函数中或一个相似。

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

includes/theme.inc:

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

在 template_process_html() 函数中。