Index: modules/taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.201 diff -u -r1.201 taxonomy.module --- modules/taxonomy.module 14 May 2005 21:40:42 -0000 1.201 +++ modules/taxonomy.module 18 May 2005 18:18:57 -0000 @@ -374,8 +374,14 @@ if (!$vocabulary->tags) { $tree = taxonomy_get_tree($vocabulary->vid); if ($tree) { - foreach ($tree as $term) { - $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . l($term->name, "taxonomy/term/$term->tid"), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); + $term_count = count($tree); + if ($term_count > 25) { + $rows[] = array(array('data' => t('This vocabulary has more than 25 terms:') . ' ' . l(t('view terms'), "admin/taxonomy/$vocabulary->vid") . '.', 'colspan' => '5', 'class' => 'message')); + } + else { + foreach ($tree as $term) { + $rows[] = array(array('data' => _taxonomy_depth($term->depth) . ' ' . l($term->name, "taxonomy/term/$term->tid"), 'class' => 'term'), NULL, NULL, NULL, l(t('edit term'), "admin/taxonomy/edit/term/$term->tid")); + } } } else {