--- pathauto.module.orig 2009-04-21 00:52:37.000000000 +0200 +++ pathauto.module 2009-06-24 21:59:42.000000000 +0200 @@ -215,6 +215,9 @@ case 'insert': case 'update': _pathauto_include(); + // Don't run Pathauto if the user didn't edit the current node. + if (!isset($node->pathauto_usersubmitted) || $node->pathauto_usersubmitted !== TRUE) + return; // Get the specific pattern or the default if (variable_get('language_content_type_'. $node->type, 0)) { $pattern = trim(variable_get('pathauto_node_'. $node->type .'_'. $node->language .'_pattern', FALSE)); @@ -296,6 +299,9 @@ $form['path']['old_alias'] = array('#type' => 'value', '#value' => $node->path); } } + + //Always set this value to indicate that the insertion or update of a node is triggered by the user + $form['pathauto_usersubmitted'] = array('#type' => 'value', '#value' => TRUE); } }