0

我目前正在使用 Drupal 6,并且一直在开发一个为站点执行特定功能的自定义模块。目前,我还有 1 个功能需要修复。当文件上传到节点时,我想做其他事情。我的问题是,我怎样才能捕捉到那个事件?就像是

when a file is uploaded {
   read the file
   print an additional info to the field (a cck field)
}
4

1 回答 1

0

使用文件域的 hook_file_update()。见这里: http ://www.wesjones.net/home/2011/03/drupal-6-how-to-change-filename-on-upload

于 2012-05-05T23:58:05.743 回答