? project_alias.patch
Index: project.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/project.inc,v
retrieving revision 1.124
diff -u -p -r1.124 project.inc
--- project.inc	15 Mar 2008 20:09:39 -0000	1.124
+++ project.inc	6 Aug 2008 14:16:42 -0000
@@ -379,14 +379,14 @@ function project_project_nodeapi(&$node,
   switch ($op) {
     case 'insert':
       _project_save_taxonomy($node);
-      if (module_exists('path')) {
+      if (module_exists('path') && variable_get('project_enable_alias', TRUE)) {
         path_set_alias("node/$node->nid", "project/$node->uri");
       }
       break;
 
     case 'update':
       _project_save_taxonomy($node);
-      if (module_exists('path')) {
+      if (module_exists('path') && variable_get('project_enable_alias', TRUE)) {
         path_set_alias("node/$node->nid");  // Clear existing alias.
         path_set_alias("node/$node->nid", "project/$node->uri");
       }
Index: project.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/project.install,v
retrieving revision 1.20
diff -u -p -r1.20 project.install
--- project.install	8 Mar 2008 16:48:12 -0000	1.20
+++ project.install	6 Aug 2008 14:16:43 -0000
@@ -51,6 +51,7 @@ function project_uninstall() {
     'project_browse_nodes',
     'project_sort_method',
     'project_vocabulary',
+    'project_enable_alias',
   );
   foreach ($variables as $variable) {
     variable_del($variable);
Index: project.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/project.module,v
retrieving revision 1.317
diff -u -p -r1.317 project.module
--- project.module	1 Aug 2008 22:36:51 -0000	1.317
+++ project.module	6 Aug 2008 14:16:44 -0000
@@ -295,6 +295,11 @@ function project_settings_form() {
     '#options' =>  drupal_map_assoc(array(5, 10, 15, 20, 25, 30, 35, 40, 45, 50)),
     '#description' => t('The default maximum number of projects to list when browsing lists, e.g., by category.')
   );
+  $form['project_enable_alias'] = array(
+    '#type' => 'checkbox', '#title' => t('Enable auto-generated project/[name] alias'),
+    '#default_value' => variable_get('project_enable_alias', TRUE),
+    '#description' => t('If checked, project module will automatically generate path aliases for each project. Uncheck if you want to use pathauto, for example.')
+  );
 
   return system_settings_form($form);
 }
@@ -522,7 +527,7 @@ function project_form_alter($form_id, &$
     // If the form has an element for specifying a URL alias, we want
     // to alter it, since we're just going to automatically override
     // the specified value.
-    if (isset($form['path'])) {
+    if (variable_get('project_enable_alias', TRUE) && isset($form['path'])) {
       $url_alias = $form['path']['path']['#default_value'];
       if (empty($url_alias)) {
         unset($form['path']);
