Recently, I was confused when my implementation of hook_pathauto_pattern_alter() was not called for my new content type. I learned that hook_pathauto_pattern_alter() will only fire if a default pattern is defined. It makes sense to me that this hook would not fire if a default pattern is not defined, but I think it would be helpful to have a note in the API file that mentions this.

CommentFileSizeAuthor
#1 2434675-1-pattern-alter-documentation.patch541 bytesmtift

Comments

mtift’s picture

StatusFileSize
new541 bytes

Adding organization

Marko B’s picture

Great you found this. Would be lost for hours without this thing.

dave reid’s picture

Status: Needs review » Fixed

Committed to 7.x-1.x. Thanks mtift!

  • Dave Reid committed e9ba8c0 on 7.x-1.x authored by mtift
    Issue #2434675 by mtift: Clarify when hook_pathauto_pattern_alter() is...

  • Dave Reid committed 7e1925a on authored by mtift
    Issue #2434675 by mtift: Clarify when hook_pathauto_pattern_alter() is...
mtift’s picture

Status: Fixed » Closed (fixed)

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