Need the ability here to have a settings page like pathauto where we can set the Separator and Character case at very minimum.
For now I have hacked the stable release with...
Old
$item['link_path'] = token_replace($menu_token_enabled[$mlid], array('global'));
New
$item['link_path'] = strtolower(str_replace(' ', '-', token_replace($menu_token_enabled[$mlid], array('global'))));
At least I can use this now, but I assume most people will be wanting to use this module in tandem with pathauto and need the ability to 'match' the token that are generated off that.
Comments
Comment #1
roam2345 commentedHere is that magic function off pathauto... I don't know if it would be wise to make this module dependent on it as I assume most people would be using that then you can simply just use the function and not have to worry about keeping the two in sync... duno what yourr thought are.
Comment #2
cweagansSo maybe something like this?
Comment #3
cweagansEh, no. That's not going to work, actually. However, have you taken a look at #1320842: Work with the Path Auto module?
Comment #4
develcuy commentedMenu token module is not intended to filter paths, it just replaces tokens within a path and looks for the corresponding path alias to use it if that is the case.