Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经让我的 php 设置一个存储访问者来自的 http_referer 的 cookie,但是我如何(或在哪里)将此代码放在我的 Drupal 主题/安装中,以使其在访问者第一次登陆我的 Drupal 时设置 cookie地点?
在使用函数 hook_init() 的自定义模块中