I am working on a module that adds pro forma invoice functionality and I need to generate different file names for invoice vs pro forma. Alter handles this kind of use cases in a nice and clean way.

Comments

slashrsm created an issue. See original summary.

slashrsm’s picture

Status: Active » Needs review
StatusFileSize
new673 bytes
benr’s picture

Status: Needs review » Reviewed & tested by the community

It works. Thanks.

klausi’s picture

Status: Reviewed & tested by the community » Needs work

Hooks that are provided by a module should be documented in MODULENAME.api.php, see http://drupal.org/node/161085#api_php

This also seems very much related to #2093643: Allow PDF's filename configuration and add token support, would that also work in your case?

raphael apard’s picture

nicola85’s picture

  • klausi committed 2cf02d4b on 7.x-1.x
    feat(pdf): Allow altering the PDF file name (#2564351 by slashrsm,...
klausi’s picture

Status: Needs work » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.