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

greggles’s picture

Hello - 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).

greggles’s picture

Status: Active » Postponed (maintainer needs more info)
nilard’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
greggles’s picture

Version: 5.x-1.0 » 5.x-2.x-dev

I 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.