--- pathauto.module.old 2009-01-15 12:13:06.000000000 +0200 +++ pathauto.module 2009-02-19 18:08:15.000000000 +0200 @@ -216,6 +216,10 @@ function pathauto_nodeapi(&$node, $op, $ break; case 'insert': case 'update': + // 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)); @@ -297,6 +301,9 @@ function pathauto_form_alter(&$form, $fo $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); } }