In pathauto_node.inc:
$placeholders[t('[type]')] = pathauto_cleanstring(node_get_types('name', $node));
replace with:
$nodetype = node_get_types('type', $node);
$placeholders[t('[type]')] = pathauto_cleanstring($nodetype->type);
Or make an additional alias (for ex. [machine-type]), please.
Comments
Comment #1
gregglesHello - thanks for submitting this feature request.
Can you explain the motivation for this change? Also, I don't really like the idea of changing the functioning of a pattern within a release, so I would prefer a whole new pattern.
Finally, in general it's easiest if patches are provided using an actual patch file (see http://drupal.org/diffandpatch for details on creating them if you are not familiar with it).
Comment #2
gregglesComment #3
nilard commentedComment #4
gregglesI assume that the availability of this machine readable type in the Pathauto 5.x-2.x is why you closed this?
I'm updating the version number to reflect the availability of this feature there.