Drupal_alter is called on a function ending in the word 'alter'.
Because of this the alter hook is confusingly called hook_fillpdf_merge_fields_alter_alter instead of hook_fillpdf_merge_fields_alter, as one would expect.

Problem also mentioned in #1437620: Document hooks in fillpdf.api.php

Comments

oenie’s picture

Title: Confusing hook name 'hook_fillpdf_merge_pdf_fields_alter_alter' » Confusing hook name 'hook_fillpdf_merge_fields_alter_alter'
Issue summary: View changes
oenie’s picture

Status: Active » Needs review
StatusFileSize
new526 bytes
oenie’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
StatusFileSize
new473 bytes

Due to backwards compatibility issues could only rename this on version 7.x-2.x (see #1437620: Document hooks in fillpdf.api.php , comment #13)
Switching branch + new patch on that branch

wizonesolutions’s picture

I'm not continuing on 7.x-2.x, so I'm simply going to add the more intuitive hook name to the module as well.

wizonesolutions’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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