Active
Project:
Spaces
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2013 at 23:31 UTC
Updated:
14 Jan 2013 at 23:31 UTC
if creating a group node programmatically, spaces_og sets the purl path to nodetype-nid
if (isset($node->purl) && is_array($node->purl) && !empty($node->purl['value'])) {
$modifier['value'] = $node->purl['value'];
purl_save($modifier);
}
else if (empty($node->purl)) {
$modifier['value'] = "{$node->type}-{$node->nid}";
purl_save($modifier);
}
It would be great to be able to make this configurable, i.e. like pathauto or even synchronised to the pathauto value.