pathauto_node_update_alias(), using $op = "return" may provide a useful wrapper to pathauto_create_alias().
It lets you know what would be the alias to be generated simply using a couple of arguments.
But for this to work, it should itself return the call to pathauto_create_alias().

CommentFileSizeAuthor
#1 1781302-pathauto-return-node-alias.patch545 bytesdrzraf

Comments

drzraf’s picture

StatusFileSize
new545 bytes
drzraf’s picture

Category: bug » feature

ping ?

dave reid’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev
Status: Active » Patch (to be ported)

I also applied the same to pathauto_taxonomy_term_update_alias() and pathauto_user_update_alias() and committed to 7.x-1.x. Thanks!

http://drupalcode.org/project/pathauto.git/commit/3a3b29a

  • Dave Reid committed 3a3b29a on 8.x-1.x authored by drzraf
    Issue #1781302: Added return values to the pathauto_*_update_alias()...
  • Dave Reid committed b2b3c23 on 8.x-1.x
    Follow-up #1781302: Added return value to the pathauto_blog_update_alias...

  • Dave Reid committed 3a3b29a on 8.x-1.x authored by drzraf
    Issue #1781302: Added return values to the pathauto_*_update_alias()...
  • Dave Reid committed b2b3c23 on 8.x-1.x
    Follow-up #1781302: Added return value to the pathauto_blog_update_alias...
mably’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.