创建了最简单的模块,它安装了,没有任何反应

发布于 2024-10-10 01:54:48 字数 267 浏览 0 评论 0原文

我创建了一个模块,可以在 Drupal 的普通安装上运行,但在我正在开发的公司网站上根本不起作用。以前从未发生过这种情况,我已经用尽了我所知道的一切来查找可能出现的拼写错误。该模块仅将此作为测试:

function pathargs_nodapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {
  if($op == 'update') {
    watchdog("debug", "insertings");
  }
}

I have created a module that works on a vanilla installation of Drupal but doesn't work at all on the corp website that I am working on. Never had this happen before and I have exhausted all I know for whatever typos that could be made. The module only has this as a test:

function pathargs_nodapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {
  if($op == 'update') {
    watchdog("debug", "insertings");
  }
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不可一世的女人 2024-10-17 01:54:48

您可能想使用

function pathargs_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {

而不是

function pathargs_nodapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {

You probably want to use

function pathargs_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {

instead of

function pathargs_nodapi(&$node, $op, $a3 = NULL, $a4 = NULL ) {
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文