0

I would like to use views bulk operations to select and then print a large amount of nodes at once. I only want the print dialog box to open one time for the whole batch. Any ideas on how to approach this process?

  • Could you please elaborate how you managed to accomplish this? I've got a similar issue and am trying to figure out how to print printer-friendly versions of a bunch of nodes in bulk. – SN_26 Aug 31 '15 at 3:41
0

In your hook_action_info() implementation, you should set 'aggregate' to TRUE. For example:

function YOURMODULE_action_info() {
  return array(
    'YOURMODULE_your_custom_print_action' => array(
      'type' => 'node',
      'label' => t('Print nodes'),
      'aggregate' => TRUE,
    ),
  );
}
| improve this answer | |
  • Could you please elaborate how you managed to accomplish this? I've got a similar issue and am trying to figure out how to print printer-friendly versions of a bunch of nodes in bulk. – SN_26 Aug 26 '15 at 15:13
  • @SN_26 Actually, I didn't managed to accomplish this, I just pointed out the 'aggregate' => TRUE, option to apply the action on the whole batch, instead of on individual nodes. You can ask to the original poster, Eazye1977, how he managed to do this, if you want a complete code example. – Елин Й. Aug 28 '15 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.