Closed (works as designed)
Project:
Custom Tokens
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Sep 2010 at 12:45 UTC
Updated:
19 Oct 2013 at 00:49 UTC
Comments
Comment #1
seb7 commentedok,
it's because pathauto acts not the way on tokens depending on their name.
So to return string with slashes, the token name must end with -path.
I suggest you add that information somewhere appropriate (readmefile or ...)
Comment #2
b-prod commentedThe patch suggested in issue #1196420: Token options are not passed to the evaluated code and the returned value type should not be string only allows to check if the 'pathauto' key is present in the
$optionsarray, so the custom PHP code may return an array of elements instead of a string when$options['pathauto']is not empty.When returning an array of string variables, the pathauto module will join them using a slash (/).
Example of use:
With that it is no more required for the custom token name to finish with -path.
Comment #3
13rac1 commentedClosing old issue, especially since B-Prod answered it.