Drupal 批处理表单 - 过程值?
有没有办法让表单将表单值发送到批处理过程中并在每个批处理操作中使用它们?
Is there a way to have a form send form values into a batch process and use them on each batch operation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以将它们传递给声明批处理的函数,然后从那里将它们传递给每个操作:
显然,您需要更改
mymodule_mybatch
中数据的来源以满足您的需求: )Yes you can just pass them through to the function that declares the batch, and from there pass them to each operation:
Obviously you'd need to change where the data comes from in
mymodule_mybatch
to suit your needs :)