--- project/project.module 2007-05-16 15:23:20.000000000 -0400 +++ project_mod/project.module 2007-06-06 23:38:21.000000000 -0400 @@ -96,6 +96,13 @@ function project_settings_form() { '#options' => $sort_methods, '#description' => t('Default sorting option to use on the overview page'), ); + $form['project_taxonomy_term_path'] = array( + '#type' => 'radios', + '#title' => t('Path to use for taxonomy terms'), + '#default_value' => variable_get('project_taxonomy_term_path', 0), + '#options' => array(t('Use path provided by project module'), t('Use standard path provided by taxonomy module')), + '#description' => t('By default, taxonomy terms on the project overview page will link to a page provided by the project module. However, if your Project vocabulary is not set in the expected way, the link to these terms will be invalid. Check this option to use the path to the term provided by the taxonomy module instead of the one provided by the project module.'), + ); $form['sort_methods'] = array( '#type' => 'fieldset', '#title' => t('Enabled sorting options'), @@ -636,7 +643,7 @@ function project_page_overview($termname if ($term->name != $termname) { $project->terms[$term->name] = array( 'title' => $term->name, - 'href' => project_term_path($term), + 'href' => variable_get('project_taxonomy_term_path', 0) ? taxonomy_term_path($term) : project_term_path($term), ); } }