Index: modules/project/project.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project/project.module,v retrieving revision 1.278 diff -u -p -r1.278 project.module --- modules/project/project.module 14 Jul 2007 13:25:58 -0000 1.278 +++ modules/project/project.module 14 Jul 2007 14:37:36 -0000 @@ -33,15 +33,38 @@ function project_help($section) { return $help; case 'admin/project/project-settings': if (project_use_taxonomy()) { - $vid = _project_get_vid(); - $vocabulary = taxonomy_get_vocabulary($vid); - return t('

The project module makes special use of the taxonomy (category) system. A special vocabulary, %vocabulary_name, has been created automatically.

-

To take full advantage of project categorization, add at least two levels of terms to this vocabulary. The first level will be the basic project types, e.g., "modules", "themes", "translations".

-

Subterms of each of these types will be the categories that users can select to classify the projects. For example, "modules" might have sub-terms including "mail" and "XML".

-

Use the vocabulary admin page to view and add terms.

', array('!taxonomy-admin' => url('admin/content/taxonomy/' . $vid), '%vocabulary_name' => $vocabulary->name)); + return _project_taxonomy_help(); } break; } + if (arg(0) == 'admin' && arg(1) == 'content' && arg(2) == 'taxonomy') { + $vid = _project_get_vid(); + if (arg(3) == $vid) { + return _project_taxonomy_help($vid, FALSE); + } + } +} + +/** + * Prints out a help message about how to configure the project vocabulary. + * + * @param $vid + * Vocabulary ID of the project taxonomy. + * @param $vocab_link + * Boolean that controls if a link to the vocabulary admin page is added. + */ +function _project_taxonomy_help($vid = 0, $vocab_link = TRUE) { + if (!$vid) { + $vid = _project_get_vid(); + } + $vocabulary = taxonomy_get_vocabulary($vid); + $text = '

'. t('The project module makes special use of the taxonomy (category) system. A special vocabulary, %vocabulary_name, has been created automatically.', array('%vocabulary_name' => $vocabulary->name)) .'

'; + $text .= '

'. t('To take full advantage of project categorization, add at least two levels of terms to this vocabulary. The first level will be the basic project types, e.g., "Modules", "Themes", "Translations".') .'

'; + $text .= '

'. t('Subterms of each of these types will be the categories that users can select to classify the projects. For example, "Modules" might have sub-terms including "Mail" and "XML".') .'

'; + if ($vocab_link) { + $text .= '

'. t('Use the vocabulary admin page to view and add terms.

', array('@taxonomy-admin' => url('admin/content/taxonomy/'. $vid))) .'

'; + } + return $text; } /**