Drupal 打印模块 - 更改 PDF 输出的名称
如何分别为每个模块更改 PRINT 模块中 PDF 输出的名称?我可以使用某种钩子吗?有什么帮助吗?
How to change name for PDF output in PRINT module, for each module separately? Can I use a some sort of hook for it? Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Print 模块在 print_pdf.page.inc 中包含一个 drupal_alter 函数,
这导致以下钩子可供使用:
The Print module includes a drupal_alter function in print_pdf.page.inc
This results in the following hook being available for use:
我找不到钩子,但我确实设法找到了它的变量。
我查看了该模块,似乎正在将名称设置为第 41 行页面 print.pdf.pages.inc。
所以尝试一下并将此代码放入您的模块中。我不确定它是否会起作用
欢呼,
维沙尔
I could not find a hook but I did manage to find the variable for it.
I had a look at the module and it seems it is setting the name at line 41 page print.pdf.pages.inc.
So try this and put this code in your module. I am not sure if it will work
cheers,
Vishal