It's not necessarily clear whether drush fn-hook expects "hook_HOOKNAME" or just "HOOKNAME". A little simple clarifying text in the help and an example would make it obvious. Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Assigned: TravisCarden » Unassigned
Status: Active » Needs review
Issue tags: +Novice
FileSize
799 bytes
TravisCarden’s picture

Oh, one more thing. The patch should apply equally well on D6-D8.

juampynr’s picture

Status: Needs review » Fixed
salvis’s picture

Status: Fixed » Patch (to be ported)

@juampy: Since you list only one commitdiff I have to ask: did you commit to all three branches?

If yes, then please clear the tags.

juampynr’s picture

Status: Patch (to be ported) » Fixed
Issue tags: -Needs backport to D6, -Needs backport to D7

Thanks for reminding it @salvis. Backported to D7. Feel free to reopen and submit a backport for D6 (patch does not apply).

salvis’s picture

Issue tags: +Needs backport to D6

Thanks

TravisCarden’s picture

Assigned: Unassigned » TravisCarden
Status: Fixed » Patch (to be ported)

I'll get back to this, but not right away...

TravisCarden’s picture

Version: 8.x-1.x-dev » 6.x-1.x-dev
Status: Patch (to be ported) » Reviewed & tested by the community
FileSize
761 bytes

Here's a patch for D6. I'll just set this back to RTBC since it's so trivial and I didn't change anything.

moshe weitzman’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Committed to 6.x Sorry about the 18 month delay.

TravisCarden’s picture

Assigned: TravisCarden » Unassigned

Lol. Thanks.

Status: Fixed » Closed (fixed)

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