In Drupal, how to change the values passed to Pathauto?

Posted by Vinicius Pinto on Stack Overflow See other posts from Stack Overflow or by Vinicius Pinto
Published on 2010-05-10T17:14:53Z Indexed on 2010/05/10 19:24 UTC
Read the original article Hit count: 277

Filed under:
|
|

I have Pathauto configured to generate an alias based on the title of a node, for a specific content type. The problem is that I want to make small changes in this title before Pathauto uses it to generate the alias.

The first comment in this post suggests the use of hook_token_values, but I couldn't really understand how to use it, even after reading the docs. In my tests, when I implement this hook, the alias generated is always "array", which means I'm missing something.

Any help? Thanks.

© Stack Overflow or respective owner

Related posts about drupal

Related posts about pathauto