Trying to figure out any options to basically achieve this: http://drupal.org/node/618356
On a certain action, I want to run a function which will find all nodes of a certain type that have the "Generate automatic URL alias" unchecked, and set them to have automatic aliases / generate those aliases.
Here is what I'm thinking of doing. Creating a site with a node that has a "Parent Page" node reference field, this node reference field is used for the alias of the current node ([node:field-parentpage:url:path]/[node:title]). So there would be a simple system for hierarchical structure.
Only problem is if a node is edited and it's parent page node reference is changed, and this node has other nodes referencing it - all those nodes referencing it will then have bad paths.
There's obviously a solution to this, and it's likely writing a custom module that uses hook_node_update > checks if the parent page field has changed > run function. Question is what is the function? I'd guess it has something to do with running the check that pathauto must do (compare node's current alias with the one pathauto would generate), and if it's different then run whatever function pathauto does to generate that path.*